aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_ec_common_test.go
diff options
context:
space:
mode:
authorLisandro Pin <lisandro.pin@proton.ch>2024-12-10 22:30:13 +0100
committerGitHub <noreply@github.com>2024-12-10 13:30:13 -0800
commit8c82c037b9b99b5514010267755745ca19eae8f4 (patch)
tree9da8a041ac9e0fe16e2edd2291c6a05ae048087b /weed/shell/command_ec_common_test.go
parentff1392f7f4a854d17dea13f6738a219d7bb2cf96 (diff)
downloadseaweedfs-8c82c037b9b99b5514010267755745ca19eae8f4.tar.xz
seaweedfs-8c82c037b9b99b5514010267755745ca19eae8f4.zip
Unify the re-balancing logic for `ec.encode` with `ec.balance`. (#6339)
Among others, this enables recent changes related to topology aware re-balancing at EC encoding time.
Diffstat (limited to 'weed/shell/command_ec_common_test.go')
-rw-r--r--weed/shell/command_ec_common_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/shell/command_ec_common_test.go b/weed/shell/command_ec_common_test.go
index 963706894..e9c9b1d99 100644
--- a/weed/shell/command_ec_common_test.go
+++ b/weed/shell/command_ec_common_test.go
@@ -32,6 +32,7 @@ func errorCheck(got error, want string) error {
}
return nil
}
+
func TestParseReplicaPlacementArg(t *testing.T) {
getDefaultReplicaPlacementOrig := getDefaultReplicaPlacement
getDefaultReplicaPlacement = func(commandEnv *CommandEnv) (*super_block.ReplicaPlacement, error) {