Browse Source

revert previous change

revert 29e62aba00
pull/1905/head
Chris Lu 4 years ago
parent
commit
352ba23f83
  1. 2
      weed/shell/command_volume_balance.go

2
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
}

Loading…
Cancel
Save