mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix: doDeleteFiles deletes files (#5198)
This commit is contained in:
parent
1169f94310
commit
8d23e36c45
|
@ -410,7 +410,7 @@ func genProcessFunction(sourcePath string, targetPath string, excludePaths []str
|
||||||
}
|
}
|
||||||
// handle deletions
|
// handle deletions
|
||||||
if filer_pb.IsDelete(resp) {
|
if filer_pb.IsDelete(resp) {
|
||||||
if doDeleteFiles {
|
if !doDeleteFiles {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
if !strings.HasPrefix(string(sourceOldKey), sourcePath) {
|
if !strings.HasPrefix(string(sourceOldKey), sourcePath) {
|
||||||
|
|
Loading…
Reference in a new issue