mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix: skip s3 .uploads
This commit is contained in:
parent
53be97d5be
commit
be166b434f
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue