mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-20 09:37:56 +08:00
minor
This commit is contained in:
@@ -474,14 +474,14 @@ func genProcessFunction(sourcePath string, targetPath string, excludePaths []str
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// new key is outside of the watched directory
|
// new key is outside the watched directory
|
||||||
if doDeleteFiles {
|
if doDeleteFiles {
|
||||||
key := buildKey(dataSink, message, targetPath, sourceOldKey, sourcePath)
|
key := buildKey(dataSink, message, targetPath, sourceOldKey, sourcePath)
|
||||||
return dataSink.DeleteEntry(key, message.OldEntry.IsDirectory, message.DeleteChunks, message.Signatures)
|
return dataSink.DeleteEntry(key, message.OldEntry.IsDirectory, message.DeleteChunks, message.Signatures)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// old key is outside of the watched directory
|
// old key is outside the watched directory
|
||||||
if strings.HasPrefix(string(sourceNewKey), sourcePath) {
|
if strings.HasPrefix(string(sourceNewKey), sourcePath) {
|
||||||
// new key is in the watched directory
|
// new key is in the watched directory
|
||||||
key := buildKey(dataSink, message, targetPath, sourceNewKey, sourcePath)
|
key := buildKey(dataSink, message, targetPath, sourceNewKey, sourcePath)
|
||||||
@@ -491,7 +491,7 @@ func genProcessFunction(sourcePath string, targetPath string, excludePaths []str
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// new key is also outside of the watched directory
|
// new key is also outside the watched directory
|
||||||
// skip
|
// skip
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user