|
@ -172,7 +172,7 @@ func countFreeShardSlots(dn *master_pb.DataNodeInfo, diskType types.DiskType) (c |
|
|
if diskInfo == nil { |
|
|
if diskInfo == nil { |
|
|
return 0 |
|
|
return 0 |
|
|
} |
|
|
} |
|
|
return int(diskInfo.MaxVolumeCount-diskInfo.ActiveVolumeCount)*erasure_coding.DataShardsCount - countShards(diskInfo.EcShardInfos) |
|
|
|
|
|
|
|
|
return int(diskInfo.MaxVolumeCount-diskInfo.VolumeCount)*erasure_coding.DataShardsCount - countShards(diskInfo.EcShardInfos) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
type RackId string |
|
|
type RackId string |
|
|