Chris Lu
2 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
weed/shell/command_ec_encode.go
|
|
@ -202,8 +202,8 @@ func doEcEncode(commandEnv *CommandEnv, collection string, volumeIds []needle.Vo |
|
|
|
} |
|
|
|
|
|
|
|
ewg.Reset() |
|
|
|
for _, vid := range volumeIds { |
|
|
|
target := locations[vid][0] |
|
|
|
for i, vid := range volumeIds { |
|
|
|
target := locations[vid][i%len(locations[vid])] |
|
|
|
ewg.Add(func() error { |
|
|
|
if err := mountEcShards(commandEnv.option.GrpcDialOption, collection, vid, target.ServerAddress(), shardIds); err != nil { |
|
|
|
return fmt.Errorf("mount ec shards for volume %d on %s: %v", vid, target.Url, err) |
|
|
|