mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-11-08 20:34:47 +08:00
[shell] only apply the balancing for writable volumes (#6346)
This commit is contained in:
committed by
GitHub
parent
9987a65e8a
commit
0a4b1909a2
@@ -255,8 +255,8 @@ func TestBalance(t *testing.T) {
|
||||
volumeServers := collectVolumeServersByDcRackNode(topologyInfo, "", "", "")
|
||||
volumeReplicas, _ := collectVolumeReplicaLocations(topologyInfo)
|
||||
diskTypes := collectVolumeDiskTypes(topologyInfo)
|
||||
|
||||
if err := balanceVolumeServers(nil, diskTypes, volumeReplicas, volumeServers, "ALL_COLLECTIONS", false); err != nil {
|
||||
c := &commandVolumeBalance{}
|
||||
if err := c.balanceVolumeServers(diskTypes, volumeReplicas, volumeServers, "ALL_COLLECTIONS"); err != nil {
|
||||
t.Errorf("balance: %v", err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user