diff options
| author | leyou240 <leyou240@live.cn> | 2022-04-18 10:39:29 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-18 10:39:29 +0800 |
| commit | 89eb87c1d16640030927af242b34eba47a149427 (patch) | |
| tree | e7bbc83368c814afa3d6c81c808738f91e32afd4 /weed/command/filer_sync.go | |
| parent | 846c56e005243aca99dd4500b5680f340525a320 (diff) | |
| parent | b597baf488fa4449d41ac2b78d421751f65f909e (diff) | |
| download | seaweedfs-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.go | 5 |
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 |
