diff options
Diffstat (limited to 'weed/storage/volume_checking.go')
| -rw-r--r-- | weed/storage/volume_checking.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/storage/volume_checking.go b/weed/storage/volume_checking.go index f6e75a07c..b76933083 100644 --- a/weed/storage/volume_checking.go +++ b/weed/storage/volume_checking.go @@ -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) |
