Browse Source

fix: skip s3 .uploads

pull/5216/head
XIAOYQ 11 months ago
parent
commit
be166b434f
  1. 5
      weed/command/filer_sync.go

5
weed/command/filer_sync.go

@ -11,6 +11,7 @@ import (
"github.com/seaweedfs/seaweedfs/weed/replication/sink" "github.com/seaweedfs/seaweedfs/weed/replication/sink"
"github.com/seaweedfs/seaweedfs/weed/replication/sink/filersink" "github.com/seaweedfs/seaweedfs/weed/replication/sink/filersink"
"github.com/seaweedfs/seaweedfs/weed/replication/source" "github.com/seaweedfs/seaweedfs/weed/replication/source"
"github.com/seaweedfs/seaweedfs/weed/s3api/s3_constants"
"github.com/seaweedfs/seaweedfs/weed/security" "github.com/seaweedfs/seaweedfs/weed/security"
statsCollect "github.com/seaweedfs/seaweedfs/weed/stats" statsCollect "github.com/seaweedfs/seaweedfs/weed/stats"
"github.com/seaweedfs/seaweedfs/weed/util" "github.com/seaweedfs/seaweedfs/weed/util"
@ -393,7 +394,9 @@ func genProcessFunction(sourcePath string, targetPath string, excludePaths []str
if debug { if debug {
glog.V(0).Infof("received %v", resp) glog.V(0).Infof("received %v", resp)
} }
if strings.Contains(resp.Directory, "/"+s3_constants.MultipartUploadsFolder+"/") {
return nil
}
if !strings.HasPrefix(resp.Directory, sourcePath) { if !strings.HasPrefix(resp.Directory, sourcePath) {
return nil return nil
} }

Loading…
Cancel
Save