aboutsummaryrefslogtreecommitdiff
path: root/weed/command
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/command
parentf3c4b07b8a5dd6dc3e91bfa9d1a423b18b958558 (diff)
parent4ae9884a6e6375f81f709aa890458c8d4a61276d (diff)
downloadseaweedfs-ffaa2163e0aa3aee3d9cd0312a2b3b81cae8c4d6.tar.xz
seaweedfs-ffaa2163e0aa3aee3d9cd0312a2b3b81cae8c4d6.zip
Merge branch 'master' of https://github.com/chrislusf/seaweedfs
Diffstat (limited to 'weed/command')
-rw-r--r--weed/command/filer_remote_gateway_buckets.go3
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) {