diff options
| author | 霍晓栋 <huoxd@jiedaibao.com> | 2016-07-25 14:56:58 +0800 |
|---|---|---|
| committer | 霍晓栋 <huoxd@jiedaibao.com> | 2016-07-25 14:56:58 +0800 |
| commit | b9b3651a98d3ba19565ded8ccaa8d4beb5c79f17 (patch) | |
| tree | 1e0d942e311fd5ebf46032733007878218513bfa /weed/storage/volume_checking.go | |
| parent | 09bd3d015d02fb9a8c237d64586a0fbc8a6bde8f (diff) | |
| download | seaweedfs-b9b3651a98d3ba19565ded8ccaa8d4beb5c79f17.tar.xz seaweedfs-b9b3651a98d3ba19565ded8ccaa8d4beb5c79f17.zip | |
deleted index entry could not point to deleted needle
Diffstat (limited to 'weed/storage/volume_checking.go')
| -rw-r--r-- | weed/storage/volume_checking.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/storage/volume_checking.go b/weed/storage/volume_checking.go index 5fcaf3b66..d424010f1 100644 --- a/weed/storage/volume_checking.go +++ b/weed/storage/volume_checking.go @@ -22,7 +22,7 @@ func CheckVolumeDataIntegrity(v *Volume, indexFile *os.File) error { } key, offset, size := idxFileEntry(lastIdxEntry) //deleted index entry could not point to deleted needle - if offset == 0 || size == 0 { + if offset == 0 { return nil } if e = verifyNeedleIntegrity(v.dataFile, v.Version(), int64(offset)*NeedlePaddingSize, key, size); e != nil { |
