mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix volume integrity checking
This commit is contained in:
parent
1b8094ef75
commit
9d4bdfcfdf
|
@ -27,8 +27,8 @@ func CheckVolumeDataIntegrity(v *Volume, indexFile *os.File) (lastAppendAtNs uin
|
|||
if offset.IsZero() {
|
||||
return 0, nil
|
||||
}
|
||||
if size.IsDeleted() {
|
||||
size = 0
|
||||
if size < 0 {
|
||||
size = -size
|
||||
}
|
||||
if lastAppendAtNs, e = verifyNeedleIntegrity(v.DataBackend, v.Version(), offset.ToAcutalOffset(), key, size); e != nil {
|
||||
return lastAppendAtNs, fmt.Errorf("verifyNeedleIntegrity %s failed: %v", indexFile.Name(), e)
|
||||
|
|
Loading…
Reference in a new issue