diff options
| author | Lisandro Pin <lisandro.pin@proton.ch> | 2024-12-12 17:41:33 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-12 08:41:33 -0800 |
| commit | 23ffbb083c4bcc9d723ce5857e08f85e7205140a (patch) | |
| tree | 09f03ef1a87703f0ebfdeb5af20501bfcd4d4e70 /weed/shell/command_ec_encode.go | |
| parent | 6320036c567bb3d2bde32824574233aee817cd53 (diff) | |
| download | seaweedfs-23ffbb083c4bcc9d723ce5857e08f85e7205140a.tar.xz seaweedfs-23ffbb083c4bcc9d723ce5857e08f85e7205140a.zip | |
Limit EC re-balancing for `ec.encode` to relevant collections when a volume ID argument is provided. (#6347)
Limit EC re-balancing for `ec.encode` to relevant collections when a volume ID is provided.
Diffstat (limited to 'weed/shell/command_ec_encode.go')
| -rw-r--r-- | weed/shell/command_ec_encode.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/weed/shell/command_ec_encode.go b/weed/shell/command_ec_encode.go index 6ee530256..f8b881d7c 100644 --- a/weed/shell/command_ec_encode.go +++ b/weed/shell/command_ec_encode.go @@ -115,11 +115,7 @@ func (c *commandEcEncode) Do(args []string, commandEnv *CommandEnv, writer io.Wr if *collection != "" { collections = []string{*collection} } else { - // TODO: should we limit this to collections associated with the provided volume ID? - collections, err = ListCollectionNames(commandEnv, false, true) - if err != nil { - return err - } + collections = collectCollectionsForVolumeIds(topologyInfo, volumeIds) } // encode all requested volumes... |
