aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-03-11 18:39:45 -0800
committerChris Lu <chris.lu@gmail.com>2021-03-11 18:39:45 -0800
commitcca66c7fbe883480c9935ec1f5fe469ee35dae0b (patch)
treef3c3c8fb5d41a9dbea4ba52ed6d9a28686c14b64
parent7f887c78d23900402abbbc51861fa805cb053ad1 (diff)
downloadseaweedfs-cca66c7fbe883480c9935ec1f5fe469ee35dae0b.tar.xz
seaweedfs-cca66c7fbe883480c9935ec1f5fe469ee35dae0b.zip
print out the url
-rw-r--r--weed/shell/command_s3_clean_uploads.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/weed/shell/command_s3_clean_uploads.go b/weed/shell/command_s3_clean_uploads.go
index 0830b552a..1fe13d981 100644
--- a/weed/shell/command_s3_clean_uploads.go
+++ b/weed/shell/command_s3_clean_uploads.go
@@ -78,9 +78,10 @@ func (c *commandS3CleanUploads) cleanupUploads(commandEnv *CommandEnv, writer io
}
for _, staleUpload:= range staleUploads {
- fmt.Fprintf(writer, "purge %s/%s\n", uploadsDir, staleUpload)
+ deleteUrl := fmt.Sprintf("http://%s:%d%s/%s?recursive=true&ignoreRecursiveError=true",commandEnv.option.FilerHost, commandEnv.option.FilerPort,uploadsDir, staleUpload)
+ fmt.Fprintf(writer, "purge %s\n", deleteUrl)
- err = util.Delete(fmt.Sprintf("http://%s:%d%s/%s?recursive=true&ignoreRecursiveError=true",commandEnv.option.FilerHost, commandEnv.option.FilerPort,uploadsDir, staleUpload), "")
+ err = util.Delete(deleteUrl, "")
if err != nil {
return fmt.Errorf("purge %s/%s: %v", uploadsDir, staleUpload, err)
}