Skip to content

Commit

Permalink
executor: fix index_lookup_hash_join hang when used with limit (pingc…
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-srebot committed Jul 14, 2022
1 parent 124887c commit ef81f12
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion executor/index_lookup_hash_join.go
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,10 @@ func (iw *indexHashJoinInnerWorker) handleTask(ctx context.Context, task *indexH
if task.keepOuterOrder {
if err != nil {
joinResult.err = err
resultCh <- joinResult
select {
case <-ctx.Done():
case resultCh <- joinResult:
}
}
close(resultCh)
}
Expand Down

0 comments on commit ef81f12

Please sign in to comment.