aboutsummaryrefslogtreecommitdiff
path: root/weed/command/filer_sync.go
diff options
context:
space:
mode:
authorleyou240 <leyou240@live.cn>2022-04-18 10:39:29 +0800
committerGitHub <noreply@github.com>2022-04-18 10:39:29 +0800
commit89eb87c1d16640030927af242b34eba47a149427 (patch)
treee7bbc83368c814afa3d6c81c808738f91e32afd4 /weed/command/filer_sync.go
parent846c56e005243aca99dd4500b5680f340525a320 (diff)
parentb597baf488fa4449d41ac2b78d421751f65f909e (diff)
downloadseaweedfs-89eb87c1d16640030927af242b34eba47a149427.tar.xz
seaweedfs-89eb87c1d16640030927af242b34eba47a149427.zip
Merge branch 'master' into slices.SortFunc
Diffstat (limited to 'weed/command/filer_sync.go')
-rw-r--r--weed/command/filer_sync.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/weed/command/filer_sync.go b/weed/command/filer_sync.go
index 37ce2aa73..e3d3b97bc 100644
--- a/weed/command/filer_sync.go
+++ b/weed/command/filer_sync.go
@@ -267,7 +267,10 @@ func genProcessFunction(sourcePath string, targetPath string, dataSink sink.Repl
return nil
}
key := buildKey(dataSink, message, targetPath, sourceOldKey, sourcePath)
- return dataSink.DeleteEntry(key, message.OldEntry.IsDirectory, message.DeleteChunks, message.Signatures)
+ if !dataSink.IsIncremental() {
+ return dataSink.DeleteEntry(key, message.OldEntry.IsDirectory, message.DeleteChunks, message.Signatures)
+ }
+ return nil
}
// handle new entries