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
avoid nil locations
Chris Lu9a6aa00e9d11
diff --git a/weed/topology/topology_event_handling.go b/weed/topology/topology_event_handling.goindex e4eb430fec..2f4fba932b 100644--- a/weed/topology/topology_event_handling.go+++ b/weed/topology/topology_event_handling.go@@ -49,7 +49,12 @@ func (t *Topology) SetVolumeCapacityFull(volumeInfo *storage.VolumeInfo) bool {vl.accessLock.RLock()defer vl.accessLock.RUnlock()- for _, dn := range vl.vid2location[volumeInfo.Id].list {+ vidLocations, found := vl.vid2location[volumeInfo.Id]+ if !found {+ return false+ }++ for _, dn := range vidLocations.list {if !volumeInfo.ReadOnly {disk := dn.getOrCreateDisk(volumeInfo.DiskType)