mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-31 09:20:50 +01:00
deleted index entry could not point to deleted needle
This commit is contained in:
1 parent
09bd3d015d
commit
b9b3651a98
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user