revert ErrXyz to ErrorXyz temporarily.

This commit is contained in:
bingoohuang
2021-02-20 16:57:07 +08:00
parent 50df484d86
commit ee7cdf3668
7 changed files with 16 additions and 16 deletions

View File

@@ -30,7 +30,7 @@ func CheckAndFixVolumeDataIntegrity(v *Volume, indexFile *os.File) (lastAppendAt
healthyIndexSize = indexSize - int64(i)*NeedleMapEntrySize
continue
}
if err != ErrSizeMismatch {
if err != ErrorSizeMismatch {
break
}
}
@@ -94,7 +94,7 @@ func verifyNeedleIntegrity(datFile backend.BackendStorageFile, v needle.Version,
return 0, fmt.Errorf("read %s at %d", datFile.Name(), offset)
}
if n.Size != size {
return 0, ErrSizeMismatch
return 0, ErrorSizeMismatch
}
if v == needle.Version3 {
bytes := make([]byte, TimestampSize)