diff --git a/internal/querycoordv2/task/executor.go b/internal/querycoordv2/task/executor.go index acd0d9602e..41973c297f 100644 --- a/internal/querycoordv2/task/executor.go +++ b/internal/querycoordv2/task/executor.go @@ -194,9 +194,9 @@ func (ex *Executor) loadSegment(task *SegmentTask, step int) error { indexes = nil } - channel := ex.targetMgr.GetDmChannel(task.CollectionID(), segment.GetInsertChannel(), meta.CurrentTarget) + channel := ex.targetMgr.GetDmChannel(task.CollectionID(), segment.GetInsertChannel(), meta.NextTarget) if channel == nil { - channel = ex.targetMgr.GetDmChannel(task.CollectionID(), segment.GetInsertChannel(), meta.NextTarget) + channel = ex.targetMgr.GetDmChannel(task.CollectionID(), segment.GetInsertChannel(), meta.CurrentTarget) } // Get collection index info