mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-20 16:50:36 +08:00
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:
@@ -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...
|
||||
|
Reference in New Issue
Block a user