From b9b3651a98d3ba19565ded8ccaa8d4beb5c79f17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9C=8D=E6=99=93=E6=A0=8B?= Date: Mon, 25 Jul 2016 14:56:58 +0800 Subject: [PATCH] deleted index entry could not point to deleted needle --- weed/storage/volume_checking.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {