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

This commit is contained in:
Lisandro Pin authored and GitHub committed 2024-12-12 07:42:03 -08:00
1 parent 700b95304b
commit 6320036c56
2 files changed
-146

No files matched your search

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