aboutsummaryrefslogtreecommitdiff
path: root/weed/shell
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2022-06-29 12:09:03 -0700
committerGitHub <noreply@github.com>2022-06-29 12:09:03 -0700
commitb98556cff514c576f60e2282348e043fe273c360 (patch)
tree1d9bb594928d50698f5c3d0cd5559f14e02a74b1 /weed/shell
parenta8abab24121126cc077191735e5aa9654507741c (diff)
parentbcbdc4cb37027be16810d0307676a3f7372f30e1 (diff)
downloadseaweedfs-b98556cff514c576f60e2282348e043fe273c360.tar.xz
seaweedfs-b98556cff514c576f60e2282348e043fe273c360.zip
Merge pull request #3253 from kmlebedev/constMultipartUploadsFolder
use const multipart uploads folder
Diffstat (limited to 'weed/shell')
-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 {