gateway to remote object store: skip replicating multipart upload part files

fix https://github.com/chrislusf/seaweedfs/issues/2509
This commit is contained in:
chrislu 2021-12-14 19:48:31 -08:00
parent 8dca561bd1
commit bf4d7affc0

View file

@ -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
}