mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 19:39:21 +08:00
Fix LoadBalance Sync all segments to shard leaders (#18002)
Signed-off-by: yah <yang.cen@zilliz.com>
This commit is contained in:
parent
27eca2881a
commit
66a04450ad
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user