mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-29 00:10:42 +01:00
[shell] only apply the balancing for writable volumes (#6346)
This commit is contained in:
1 parent
9987a65e8a
commit
0a4b1909a2
2 files changed
+26
-13
No files matched your search
@@ -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