mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-29 16:30:44 +01: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:
1 parent
6320036c56
commit
23ffbb083c
3 files changed
+76
-5
No files matched your search
@@ -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