From bf4d7affc06d8cf04bb5403da3b9f3e6111e07f8 Mon Sep 17 00:00:00 2001 From: chrislu Date: Tue, 14 Dec 2021 19:48:31 -0800 Subject: [PATCH] gateway to remote object store: skip replicating multipart upload part files fix https://github.com/chrislusf/seaweedfs/issues/2509 --- weed/command/filer_remote_gateway_buckets.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/weed/command/filer_remote_gateway_buckets.go b/weed/command/filer_remote_gateway_buckets.go index af851e2b9..fc11cdbc5 100644 --- a/weed/command/filer_remote_gateway_buckets.go +++ b/weed/command/filer_remote_gateway_buckets.go @@ -181,6 +181,9 @@ 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/") { + return nil + } if !filer.HasData(message.NewEntry) { return nil }