SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
fix volume integrity checking
Chris Lu9d4bdfcfdf7a
diff --git a/weed/storage/volume_checking.go b/weed/storage/volume_checking.goindex 7a5a423b40..fe9b612e98 100644--- a/weed/storage/volume_checking.go+++ b/weed/storage/volume_checking.go@@ -27,8 +27,8 @@ func CheckVolumeDataIntegrity(v *Volume, indexFile *os.File) (lastAppendAtNs uinif 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)