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 DataBackend nil pointer (#4641)
wusong61553beba280
diff --git a/weed/storage/store_vacuum.go b/weed/storage/store_vacuum.goindex 26cd370a47..531d859b87 100644--- a/weed/storage/store_vacuum.go+++ b/weed/storage/store_vacuum.go@@ -33,7 +33,10 @@ func (s *Store) CommitCompactVolume(vid needle.VolumeId) (bool, int64, error) {if v := s.findVolume(vid); v != nil {isReadOnly := v.IsReadOnly()err := v.CommitCompact()- volumeSize, _, _ := v.DataBackend.GetStat()+ var volumeSize int64 = 0+ if err == nil && v.DataBackend != nil {+ volumeSize, _, _ = v.DataBackend.GetStat()+ }return isReadOnly, volumeSize, err}return false, 0, fmt.Errorf("volume id %d is not found during commit compact", vid)