Browse Source

unused

pull/3631/head
chrislu 2 years ago
parent
commit
d653c5f811
  1. 6
      weed/shell/command_volume_balance.go

6
weed/shell/command_volume_balance.go

@ -230,12 +230,6 @@ func sortWritableVolumes(volumes []*master_pb.VolumeInformationMessage) {
}) })
} }
func sortReadOnlyVolumes(volumes []*master_pb.VolumeInformationMessage) {
slices.SortFunc(volumes, func(a, b *master_pb.VolumeInformationMessage) bool {
return a.Id < b.Id
})
}
func balanceSelectedVolume(commandEnv *CommandEnv, diskType types.DiskType, volumeReplicas map[uint32][]*VolumeReplica, nodes []*Node, capacityFunc CapacityFunc, sortCandidatesFn func(volumes []*master_pb.VolumeInformationMessage), applyBalancing bool) (err error) { func balanceSelectedVolume(commandEnv *CommandEnv, diskType types.DiskType, volumeReplicas map[uint32][]*VolumeReplica, nodes []*Node, capacityFunc CapacityFunc, sortCandidatesFn func(volumes []*master_pb.VolumeInformationMessage), applyBalancing bool) (err error) {
selectedVolumeCount, volumeMaxCount := 0, 0 selectedVolumeCount, volumeMaxCount := 0, 0
var nodesWithCapacity []*Node var nodesWithCapacity []*Node

Loading…
Cancel
Save