diff options
| author | Lisandro Pin <lisandro.pin@proton.ch> | 2024-12-10 22:30:13 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-10 13:30:13 -0800 |
| commit | 8c82c037b9b99b5514010267755745ca19eae8f4 (patch) | |
| tree | 9da8a041ac9e0fe16e2edd2291c6a05ae048087b /weed/shell/command_ec_rebuild.go | |
| parent | ff1392f7f4a854d17dea13f6738a219d7bb2cf96 (diff) | |
| download | seaweedfs-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_rebuild.go')
| -rw-r--r-- | weed/shell/command_ec_rebuild.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/shell/command_ec_rebuild.go b/weed/shell/command_ec_rebuild.go index b761ea676..8cae77434 100644 --- a/weed/shell/command_ec_rebuild.go +++ b/weed/shell/command_ec_rebuild.go @@ -4,10 +4,10 @@ import ( "context" "flag" "fmt" - "github.com/seaweedfs/seaweedfs/weed/pb" "io" "github.com/seaweedfs/seaweedfs/weed/operation" + "github.com/seaweedfs/seaweedfs/weed/pb" "github.com/seaweedfs/seaweedfs/weed/pb/volume_server_pb" "github.com/seaweedfs/seaweedfs/weed/storage/erasure_coding" "github.com/seaweedfs/seaweedfs/weed/storage/needle" @@ -74,7 +74,7 @@ func (c *commandEcRebuild) Do(args []string, commandEnv *CommandEnv, writer io.W } // collect all ec nodes - allEcNodes, _, err := collectEcNodes(commandEnv, "") + allEcNodes, _, err := collectEcNodes(commandEnv) if err != nil { return err } |
