Fix LoadBalance Sync all segments to shard leaders (#18002)

Signed-off-by: yah <yang.cen@zilliz.com>
This commit is contained in:
yah01 2022-07-01 19:18:24 +08:00 committed by GitHub
parent 27eca2881a
commit 66a04450ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2382,12 +2382,7 @@ func (lbt *loadBalanceTask) globalPostExecute(ctx context.Context) error {
}
for replicaID := range replicas {
shards := make([]string, 0, len(dmChannels))
for _, dmc := range dmChannels {
shards = append(shards, dmc.DmChannel)
}
err := syncReplicaSegments(lbt.ctx, lbt.meta, lbt.cluster, replicaID, shards...)
err := syncReplicaSegments(lbt.ctx, lbt.meta, lbt.cluster, replicaID)
if err != nil {
log.Error("loadBalanceTask: failed to sync segments distribution",
zap.Int64("collectionID", lbt.CollectionID),