Skip to content

Commit

Permalink
executor: fix index merge intersection may stuck (#39495)
Browse files Browse the repository at this point in the history
  • Loading branch information
guo-shaoge authored Dec 1, 2022
1 parent fa7cf31 commit dea207b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion executor/index_merge_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -950,11 +950,12 @@ func (w *indexMergeProcessWorker) fetchLoopIntersection(ctx context.Context, fet
}, w.handleLoopFetcherPanic(ctx, resultCh, "IndexMergeIntersectionProcessWorker", errCh))
workers = append(workers, worker)
}
loop:
for task := range fetchCh {
select {
case workers[task.parTblIdx%workerCnt].workerCh <- task:
case <-errCh:
break
break loop
}
}
for _, processWorker := range workers {
Expand Down

0 comments on commit dea207b

Please sign in to comment.