aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXIAOYQ <xiaoyq@eudic.net>2024-01-18 22:13:46 +0800
committerXIAOYQ <xiaoyq@eudic.net>2024-01-18 22:13:46 +0800
commitbe166b434f002dba684e8e3630a1e87fdb6a96db (patch)
treeb520e772a38c0d64f4f99d84221fd139b2a4a523
parent53be97d5bea8b44db40077c62af5e224e21be3ee (diff)
downloadseaweedfs-be166b434f002dba684e8e3630a1e87fdb6a96db.tar.xz
seaweedfs-be166b434f002dba684e8e3630a1e87fdb6a96db.zip
fix: skip s3 .uploads
-rw-r--r--weed/command/filer_sync.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/weed/command/filer_sync.go b/weed/command/filer_sync.go
index 20464fa50..d84c6325c 100644
--- a/weed/command/filer_sync.go
+++ b/weed/command/filer_sync.go
@@ -11,6 +11,7 @@ import (
"github.com/seaweedfs/seaweedfs/weed/replication/sink"
"github.com/seaweedfs/seaweedfs/weed/replication/sink/filersink"
"github.com/seaweedfs/seaweedfs/weed/replication/source"
+ "github.com/seaweedfs/seaweedfs/weed/s3api/s3_constants"
"github.com/seaweedfs/seaweedfs/weed/security"
statsCollect "github.com/seaweedfs/seaweedfs/weed/stats"
"github.com/seaweedfs/seaweedfs/weed/util"
@@ -393,7 +394,9 @@ func genProcessFunction(sourcePath string, targetPath string, excludePaths []str
if debug {
glog.V(0).Infof("received %v", resp)
}
-
+ if strings.Contains(resp.Directory, "/"+s3_constants.MultipartUploadsFolder+"/") {
+ return nil
+ }
if !strings.HasPrefix(resp.Directory, sourcePath) {
return nil
}