Delete legacy balancing code for ec.encode. (#6344)

This commit is contained in:
Lisandro Pin
2024-12-12 16:42:03 +01:00
committed by GitHub
parent 700b95304b
commit 6320036c56
2 changed files with 0 additions and 146 deletions

View File

@@ -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{