weed/shell: Cleanup volume balance logic (#5241)

This commit is contained in:
Benoît Knecht
2024-01-25 15:19:58 +01:00
committed by GitHub
parent 0f8e76bbd6
commit 1f08010ef0
2 changed files with 9 additions and 13 deletions

View File

@@ -255,7 +255,7 @@ func TestBalance(t *testing.T) {
volumeReplicas, _ := collectVolumeReplicaLocations(topologyInfo)
diskTypes := collectVolumeDiskTypes(topologyInfo)
if err := balanceVolumeServers(nil, diskTypes, volumeReplicas, volumeServers, 30*1024*1024*1024, "ALL_COLLECTIONS", false); err != nil {
if err := balanceVolumeServers(nil, diskTypes, volumeReplicas, volumeServers, "ALL_COLLECTIONS", false); err != nil {
t.Errorf("balance: %v", err)
}