diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2022-06-29 12:09:03 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-29 12:09:03 -0700 |
| commit | b98556cff514c576f60e2282348e043fe273c360 (patch) | |
| tree | 1d9bb594928d50698f5c3d0cd5559f14e02a74b1 /weed/command | |
| parent | a8abab24121126cc077191735e5aa9654507741c (diff) | |
| parent | bcbdc4cb37027be16810d0307676a3f7372f30e1 (diff) | |
| download | seaweedfs-b98556cff514c576f60e2282348e043fe273c360.tar.xz seaweedfs-b98556cff514c576f60e2282348e043fe273c360.zip | |
Merge pull request #3253 from kmlebedev/constMultipartUploadsFolder
use const multipart uploads folder
Diffstat (limited to 'weed/command')
| -rw-r--r-- | weed/command/filer_remote_gateway_buckets.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/command/filer_remote_gateway_buckets.go b/weed/command/filer_remote_gateway_buckets.go index c3ff756db..9fe0e29df 100644 --- a/weed/command/filer_remote_gateway_buckets.go +++ b/weed/command/filer_remote_gateway_buckets.go @@ -9,6 +9,7 @@ import ( "github.com/chrislusf/seaweedfs/weed/pb/remote_pb" "github.com/chrislusf/seaweedfs/weed/remote_storage" "github.com/chrislusf/seaweedfs/weed/replication/source" + "github.com/chrislusf/seaweedfs/weed/s3api/s3_constants" "github.com/chrislusf/seaweedfs/weed/util" "github.com/golang/protobuf/proto" "math" @@ -181,7 +182,7 @@ func (option *RemoteGatewayOptions) makeBucketedEventProcessor(filerSource *sour if message.NewParentPath == option.bucketsDir { return handleCreateBucket(message.NewEntry) } - if strings.HasPrefix(message.NewParentPath, option.bucketsDir) && strings.Contains(message.NewParentPath, "/.uploads/") { + if strings.HasPrefix(message.NewParentPath, option.bucketsDir) && strings.Contains(message.NewParentPath, "/"+s3_constants.MultipartUploadsFolder+"/") { return nil } if !filer.HasData(message.NewEntry) { |
