mirror of
https://github.com/chrislusf/seaweedfs
synced 2024-07-04 16:16:58 +02:00
parent
29e62aba00
commit
352ba23f83
|
@ -201,7 +201,7 @@ type CapacityFunc func(*master_pb.DataNodeInfo) int
|
||||||
|
|
||||||
func capacityByMaxVolumeCount(diskType types.DiskType) CapacityFunc {
|
func capacityByMaxVolumeCount(diskType types.DiskType) CapacityFunc {
|
||||||
return func(info *master_pb.DataNodeInfo) int {
|
return func(info *master_pb.DataNodeInfo) int {
|
||||||
diskInfo, found := info.DiskInfos[diskType.ReadableString()]
|
diskInfo, found := info.DiskInfos[string(diskType)]
|
||||||
if !found {
|
if !found {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue