diff options
Diffstat (limited to 'weed/shell/command_ec_encode.go')
| -rw-r--r-- | weed/shell/command_ec_encode.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/shell/command_ec_encode.go b/weed/shell/command_ec_encode.go index 8b01f6cfc..686849cb8 100644 --- a/weed/shell/command_ec_encode.go +++ b/weed/shell/command_ec_encode.go @@ -123,7 +123,7 @@ func generateEcShards(ctx context.Context, grpcDialOption grpc.DialOption, volum func spreadEcShards(ctx context.Context, commandEnv *CommandEnv, volumeId needle.VolumeId, collection string, existingLocations []wdclient.Location) (err error) { - allEcNodes, totalFreeEcSlots, err := collectEcNodes(ctx, commandEnv) + allEcNodes, totalFreeEcSlots, err := collectEcNodes(ctx, commandEnv, "") if err != nil { return err } @@ -191,7 +191,7 @@ func parallelCopyEcShardsFromSource(ctx context.Context, grpcDialOption grpc.Dia err = copyErr } else { shardIdChan <- copiedShardIds - server.freeEcSlot -= len(copiedShardIds) + server.addEcVolumeShards(volumeId, collection, copiedShardIds) } }(server, startFromShardId, allocated[i]) startFromShardId += uint32(allocated[i]) |
