Skip to content

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.

avoid invalid memory address or nil pointer dereference

Konstantin Lebedev9438738693b7
diff --git a/weed/storage/volume.go b/weed/storage/volume.go
index 14bc5f22d8..6d48fbc830 100644
--- a/weed/storage/volume.go
+++ b/weed/storage/volume.go
@@ -260,7 +260,7 @@ func (v *Volume) collectStatus() (maxFileKey types.NeedleId, datFileSize int64,
defer v.dataFileAccessLock.RUnlock()
glog.V(3).Infof("collectStatus volume %d", v.Id)
- if v.nm == nil {
+ if v.nm == nil || v.DataBackend == nil {
return
}