aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_s3_clean_uploads.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-06-29 12:50:33 -0700
committerchrislu <chris.lu@gmail.com>2022-06-29 12:50:33 -0700
commitffaa2163e0aa3aee3d9cd0312a2b3b81cae8c4d6 (patch)
treec6de920ada79fc65f73f6c23a75a0a5d048f45e6 /weed/shell/command_s3_clean_uploads.go
parentf3c4b07b8a5dd6dc3e91bfa9d1a423b18b958558 (diff)
parent4ae9884a6e6375f81f709aa890458c8d4a61276d (diff)
downloadseaweedfs-ffaa2163e0aa3aee3d9cd0312a2b3b81cae8c4d6.tar.xz
seaweedfs-ffaa2163e0aa3aee3d9cd0312a2b3b81cae8c4d6.zip
Merge branch 'master' of https://github.com/chrislusf/seaweedfs
Diffstat (limited to 'weed/shell/command_s3_clean_uploads.go')
-rw-r--r--weed/shell/command_s3_clean_uploads.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/shell/command_s3_clean_uploads.go b/weed/shell/command_s3_clean_uploads.go
index a6dc8f574..198f94363 100644
--- a/weed/shell/command_s3_clean_uploads.go
+++ b/weed/shell/command_s3_clean_uploads.go
@@ -3,6 +3,7 @@ package shell
import (
"flag"
"fmt"
+ "github.com/chrislusf/seaweedfs/weed/s3api/s3_constants"
"github.com/chrislusf/seaweedfs/weed/security"
"github.com/chrislusf/seaweedfs/weed/util"
"io"
@@ -68,7 +69,7 @@ func (c *commandS3CleanUploads) Do(args []string, commandEnv *CommandEnv, writer
}
func (c *commandS3CleanUploads) cleanupUploads(commandEnv *CommandEnv, writer io.Writer, filerBucketsPath string, bucket string, timeAgo time.Duration, signingKey string) error {
- uploadsDir := filerBucketsPath + "/" + bucket + "/.uploads"
+ uploadsDir := filerBucketsPath + "/" + bucket + "/" + s3_constants.MultipartUploadsFolder
var staleUploads []string
now := time.Now()
err := filer_pb.List(commandEnv, uploadsDir, "", func(entry *filer_pb.Entry, isLast bool) error {