diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-03-14 20:23:19 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-03-14 20:23:19 -0700 |
| commit | 29e62aba00291351076d9489f4444af87b5e1d81 (patch) | |
| tree | 67541a7e5a6a08080ed0004aa0229cf961197d2b /weed/shell/command_volume_balance.go | |
| parent | 35d939a1d21322e7eb1d58899ebf4929f4fd2a72 (diff) | |
| download | seaweedfs-29e62aba00291351076d9489f4444af87b5e1d81.tar.xz seaweedfs-29e62aba00291351076d9489f4444af87b5e1d81.zip | |
possible fix for volume balance
address https://github.com/chrislusf/seaweedfs/issues/1534
Diffstat (limited to 'weed/shell/command_volume_balance.go')
| -rw-r--r-- | weed/shell/command_volume_balance.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_volume_balance.go b/weed/shell/command_volume_balance.go index e0c41f310..33ae9344d 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[string(diskType)] + diskInfo, found := info.DiskInfos[diskType.ReadableString()] if !found { return 0 } |
