Browse Source

deleted index entry could not point to deleted needle

pull/347/head
霍晓栋 9 years ago
parent
commit
b9b3651a98
  1. 2
      weed/storage/volume_checking.go

2
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 {

Loading…
Cancel
Save