From 23ffbb083c4bcc9d723ce5857e08f85e7205140a Mon Sep 17 00:00:00 2001 From: Lisandro Pin Date: Thu, 12 Dec 2024 17:41:33 +0100 Subject: 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. --- weed/shell/command_ec_encode.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'weed/shell/command_ec_encode.go') 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... -- cgit v1.2.3