aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_ec_encode.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/shell/command_ec_encode.go')
-rw-r--r--weed/shell/command_ec_encode.go6
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...