diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-06-21 20:56:27 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-06-21 20:56:27 -0700 |
| commit | a111f26fe618c5872b8b133bd2233fe6dafdf6c8 (patch) | |
| tree | ec0302a5135c1d81a0e666636da8ceb916874174 /weed/filer2 | |
| parent | 308102f0233ca019e7b48f97f7fdfc30ee606f54 (diff) | |
| download | seaweedfs-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.go | 2 |
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 } |
