aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_s3_clean_uploads.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-03-11 18:18:16 -0800
committerChris Lu <chris.lu@gmail.com>2021-03-11 18:18:16 -0800
commit7f887c78d23900402abbbc51861fa805cb053ad1 (patch)
tree13608ddf2eec9eadfc89b99940faeeb83d485415 /weed/shell/command_s3_clean_uploads.go
parentfcc52d1e4ee6014fb1c9728e59716db86bc17eca (diff)
downloadseaweedfs-7f887c78d23900402abbbc51861fa805cb053ad1.tar.xz
seaweedfs-7f887c78d23900402abbbc51861fa805cb053ad1.zip
fix
Diffstat (limited to 'weed/shell/command_s3_clean_uploads.go')
-rw-r--r--weed/shell/command_s3_clean_uploads.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_s3_clean_uploads.go b/weed/shell/command_s3_clean_uploads.go
index beffa2808..0830b552a 100644
--- a/weed/shell/command_s3_clean_uploads.go
+++ b/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)
}