diff options
| author | Lisandro Pin <lisandro.pin@proton.ch> | 2024-12-12 16:42:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-12 07:42:03 -0800 |
| commit | 6320036c567bb3d2bde32824574233aee817cd53 (patch) | |
| tree | bcda15c472cb853d66c9eeab652483e309b833f2 /weed/shell/command_ec_test.go | |
| parent | 700b95304bfd50c60cf6509438ff775cbaf21b16 (diff) | |
| download | seaweedfs-6320036c567bb3d2bde32824574233aee817cd53.tar.xz seaweedfs-6320036c567bb3d2bde32824574233aee817cd53.zip | |
Delete legacy balancing code for `ec.encode`. (#6344)
Diffstat (limited to 'weed/shell/command_ec_test.go')
| -rw-r--r-- | weed/shell/command_ec_test.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/weed/shell/command_ec_test.go b/weed/shell/command_ec_test.go index 33befce8f..fa6697435 100644 --- a/weed/shell/command_ec_test.go +++ b/weed/shell/command_ec_test.go @@ -1,25 +1,12 @@ package shell import ( - "fmt" "testing" "github.com/seaweedfs/seaweedfs/weed/pb/master_pb" "github.com/seaweedfs/seaweedfs/weed/storage/needle" ) -func TestCommandEcDistribution(t *testing.T) { - - allEcNodes := []*EcNode{ - newEcNode("dc1", "rack1", "dn1", 100), - newEcNode("dc1", "rack2", "dn2", 100), - } - - allocated := balancedEcDistribution(allEcNodes) - - fmt.Printf("allocated: %+v", allocated) -} - func TestCommandEcBalanceSmall(t *testing.T) { ecb := &ecBalancer{ ecNodes: []*EcNode{ |
