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 authored Jul 14, 2022
1 parent c82d6d7 commit 6e9fd42
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 @@ -608,7 +608,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 6e9fd42

Please sign in to comment.