aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_balance.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-09-08 12:27:53 -0700
committerchrislu <chris.lu@gmail.com>2022-09-08 12:27:53 -0700
commitd653c5f8115fa0249fd439ba041d541056dcfbaa (patch)
tree2d73fac724472e502523fad5a7117b88e185a019 /weed/shell/command_volume_balance.go
parent03e22ddb433d4117d6333d3d2a58eb24cc329a76 (diff)
downloadseaweedfs-d653c5f8115fa0249fd439ba041d541056dcfbaa.tar.xz
seaweedfs-d653c5f8115fa0249fd439ba041d541056dcfbaa.zip
unused
Diffstat (limited to 'weed/shell/command_volume_balance.go')
-rw-r--r--weed/shell/command_volume_balance.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/weed/shell/command_volume_balance.go b/weed/shell/command_volume_balance.go
index 6ba376d2c..ae3d0b556 100644
--- a/weed/shell/command_volume_balance.go
+++ b/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) {
selectedVolumeCount, volumeMaxCount := 0, 0
var nodesWithCapacity []*Node