Browse Source

fix

pull/1892/head
Chris Lu 4 years ago
parent
commit
7f887c78d2
  1. 2
      weed/shell/command_s3_clean_uploads.go

2
weed/shell/command_s3_clean_uploads.go

@ -80,7 +80,7 @@ func (c *commandS3CleanUploads) cleanupUploads(commandEnv *CommandEnv, writer io
for _, staleUpload:= range staleUploads {
fmt.Fprintf(writer, "purge %s/%s\n", uploadsDir, staleUpload)
err = util.Delete(fmt.Sprintf("http://%s:%d%s/%s?recursive=true&ignoreRecursiveError=true",commandEnv.option.FilerHost, commandEnv.option.FilerHost,uploadsDir, staleUpload), "")
err = util.Delete(fmt.Sprintf("http://%s:%d%s/%s?recursive=true&ignoreRecursiveError=true",commandEnv.option.FilerHost, commandEnv.option.FilerPort,uploadsDir, staleUpload), "")
if err != nil {
return fmt.Errorf("purge %s/%s: %v", uploadsDir, staleUpload, err)
}

Loading…
Cancel
Save