mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix
This commit is contained in:
parent
fcc52d1e4e
commit
7f887c78d2
|
@ -80,7 +80,7 @@ func (c *commandS3CleanUploads) cleanupUploads(commandEnv *CommandEnv, writer io
|
||||||
for _, staleUpload:= range staleUploads {
|
for _, staleUpload:= range staleUploads {
|
||||||
fmt.Fprintf(writer, "purge %s/%s\n", uploadsDir, staleUpload)
|
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 {
|
if err != nil {
|
||||||
return fmt.Errorf("purge %s/%s: %v", uploadsDir, staleUpload, err)
|
return fmt.Errorf("purge %s/%s: %v", uploadsDir, staleUpload, err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue