aboutsummaryrefslogtreecommitdiff
path: root/weed/command/filer_sync.go
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2024-01-13 00:04:29 +0500
committerGitHub <noreply@github.com>2024-01-12 11:04:29 -0800
commit8d23e36c4512679e1c866bf166bd57b6b52bcc90 (patch)
tree83f4664518c99fa2c736d66fa06cd6e9a69476ea /weed/command/filer_sync.go
parent1169f943103684ded4d67edac686fd94e8e78ccc (diff)
downloadseaweedfs-8d23e36c4512679e1c866bf166bd57b6b52bcc90.tar.xz
seaweedfs-8d23e36c4512679e1c866bf166bd57b6b52bcc90.zip
fix: doDeleteFiles deletes files (#5198)
Diffstat (limited to 'weed/command/filer_sync.go')
-rw-r--r--weed/command/filer_sync.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/filer_sync.go b/weed/command/filer_sync.go
index 006f6794a..20464fa50 100644
--- a/weed/command/filer_sync.go
+++ b/weed/command/filer_sync.go
@@ -410,7 +410,7 @@ func genProcessFunction(sourcePath string, targetPath string, excludePaths []str
}
// handle deletions
if filer_pb.IsDelete(resp) {
- if doDeleteFiles {
+ if !doDeleteFiles {
return nil
}
if !strings.HasPrefix(string(sourceOldKey), sourcePath) {