aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-11-29 00:32:21 -0800
committerChris Lu <chris.lu@gmail.com>2021-11-29 00:32:21 -0800
commit2f72c2449876524e9d0a5955a29ee9185efa4519 (patch)
tree124140a9e17bd00d44d6abcbea97cd50234ead0a
parent88ff8fc27b4b4cca0e813e3ca5bf32fb930f70e3 (diff)
downloadseaweedfs-2f72c2449876524e9d0a5955a29ee9185efa4519.tar.xz
seaweedfs-2f72c2449876524e9d0a5955a29ee9185efa4519.zip
skip the rest logic
-rw-r--r--weed/filer/filer_deletion.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/filer/filer_deletion.go b/weed/filer/filer_deletion.go
index a12587541..e0191d7f1 100644
--- a/weed/filer/filer_deletion.go
+++ b/weed/filer/filer_deletion.go
@@ -136,6 +136,7 @@ func (f *Filer) deleteChunksIfNotNew(oldEntry, newEntry *Entry) {
}
if newEntry == nil {
f.DeleteChunks(oldEntry.Chunks)
+ return
}
var toDelete []*filer_pb.FileChunk