aboutsummaryrefslogtreecommitdiff
path: root/weed/filer2
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-06-21 20:56:27 -0700
committerChris Lu <chris.lu@gmail.com>2019-06-21 20:56:27 -0700
commita111f26fe618c5872b8b133bd2233fe6dafdf6c8 (patch)
treeec0302a5135c1d81a0e666636da8ceb916874174 /weed/filer2
parent308102f0233ca019e7b48f97f7fdfc30ee606f54 (diff)
downloadseaweedfs-a111f26fe618c5872b8b133bd2233fe6dafdf6c8.tar.xz
seaweedfs-a111f26fe618c5872b8b133bd2233fe6dafdf6c8.zip
avoid nil
fix https://github.com/chrislusf/seaweedfs/issues/988
Diffstat (limited to 'weed/filer2')
-rw-r--r--weed/filer2/filer_deletion.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filer2/filer_deletion.go b/weed/filer2/filer_deletion.go
index 06e088de6..574be8555 100644
--- a/weed/filer2/filer_deletion.go
+++ b/weed/filer2/filer_deletion.go
@@ -78,7 +78,7 @@ func (f *Filer) deleteChunksIfNotNew(oldEntry, newEntry *Entry) {
for _, oldChunk := range oldEntry.Chunks {
found := false
for _, newChunk := range newEntry.Chunks {
- if oldChunk.Fid.Equals(newChunk.Fid) {
+ if filer_pb.ChunkEquals(oldChunk, newChunk) {
found = true
break
}