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.
This commit is contained in:
Lisandro Pin
2024-12-12 17:41:33 +01:00
committed by GitHub
parent 6320036c56
commit 23ffbb083c
3 changed files with 76 additions and 5 deletions

View File

@@ -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...