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.

revert previous change

Chris Lu352ba23f83ad
diff --git a/weed/shell/command_volume_balance.go b/weed/shell/command_volume_balance.go
index 33ae9344d8..e0c41f310e 100644
--- a/weed/shell/command_volume_balance.go
+++ b/weed/shell/command_volume_balance.go
@@ -201,7 +201,7 @@ type CapacityFunc func(*master_pb.DataNodeInfo) int
func capacityByMaxVolumeCount(diskType types.DiskType) CapacityFunc {
return func(info *master_pb.DataNodeInfo) int {
- diskInfo, found := info.DiskInfos[diskType.ReadableString()]
+ diskInfo, found := info.DiskInfos[string(diskType)]
if !found {
return 0
}