makediff func with UT case

This commit is contained in:
霍晓栋
2016-10-07 16:22:24 +08:00
parent ed848425c7
commit ce1f7ab662
4 changed files with 132 additions and 31 deletions

View File

@@ -21,7 +21,6 @@ func CheckVolumeDataIntegrity(v *Volume, indexFile *os.File) error {
return fmt.Errorf("readLastIndexEntry %s failed: %v", indexFile.Name(), e)
}
key, offset, size := idxFileEntry(lastIdxEntry)
//deleted index entry could not point to deleted needle
if offset == 0 {
return nil
}