Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

fix: skip s3 .uploads

XIAOYQbe166b434f00
diff --git a/weed/command/filer_sync.go b/weed/command/filer_sync.go
index 20464fa50a..d84c6325c8 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
}