aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-03-14 20:49:56 -0700
committerChris Lu <chris.lu@gmail.com>2021-03-14 20:49:56 -0700
commit352ba23f83adb5bddb5c65d1d2e6637a46cda05d (patch)
tree80e152732dcf4efb11b8522060fe3644e5268ffe
parent29e62aba00291351076d9489f4444af87b5e1d81 (diff)
downloadseaweedfs-352ba23f83adb5bddb5c65d1d2e6637a46cda05d.tar.xz
seaweedfs-352ba23f83adb5bddb5c65d1d2e6637a46cda05d.zip
revert previous change
revert 29e62aba00291351076d9489f4444af87b5e1d81
-rw-r--r--weed/shell/command_volume_balance.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_volume_balance.go b/weed/shell/command_volume_balance.go
index 33ae9344d..e0c41f310 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
}