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
Chris Lu38bbef7ec1e9
diff --git a/weed/shell/command_volume_balance.go b/weed/shell/command_volume_balance.goindex 9fa915ea4f..f5fdf2216e 100644--- a/weed/shell/command_volume_balance.go+++ b/weed/shell/command_volume_balance.go@@ -205,7 +205,10 @@ type CapacityFunc func(*master_pb.DataNodeInfo) intfunc capacityByMaxVolumeCount(diskType types.DiskType) CapacityFunc {return func(info *master_pb.DataNodeInfo) int {- diskInfo := info.DiskInfos[string(diskType)]+ diskInfo, found := info.DiskInfos[string(diskType)]+ if !found {+ return 0+ }return int(diskInfo.MaxVolumeCount)}}