diff options
| author | chrislu <chris.lu@gmail.com> | 2024-07-16 09:20:59 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2024-07-16 09:21:01 -0700 |
| commit | 19d14b4c7160c2d555a795f7b6f74d2b45ab530c (patch) | |
| tree | 15ef72dc21f87bdafff053f040c567f16e63f841 | |
| parent | b796c21fa9cce9360900b18253c182fd5ca92763 (diff) | |
| download | seaweedfs-19d14b4c7160c2d555a795f7b6f74d2b45ab530c.tar.xz seaweedfs-19d14b4c7160c2d555a795f7b6f74d2b45ab530c.zip | |
minor
| -rw-r--r-- | weed/command/filer_sync.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/command/filer_sync.go b/weed/command/filer_sync.go index c246f6b74..90204af4a 100644 --- a/weed/command/filer_sync.go +++ b/weed/command/filer_sync.go @@ -474,14 +474,14 @@ func genProcessFunction(sourcePath string, targetPath string, excludePaths []str } } else { - // new key is outside of the watched directory + // new key is outside the watched directory if doDeleteFiles { key := buildKey(dataSink, message, targetPath, sourceOldKey, sourcePath) return dataSink.DeleteEntry(key, message.OldEntry.IsDirectory, message.DeleteChunks, message.Signatures) } } } else { - // old key is outside of the watched directory + // old key is outside the watched directory if strings.HasPrefix(string(sourceNewKey), sourcePath) { // new key is in the watched directory key := buildKey(dataSink, message, targetPath, sourceNewKey, sourcePath) @@ -491,7 +491,7 @@ func genProcessFunction(sourcePath string, targetPath string, excludePaths []str return nil } } else { - // new key is also outside of the watched directory + // new key is also outside the watched directory // skip } } |
