Skip to content

Commit

Permalink
cherry pick pingcap#35820 to release-5.0
Browse files Browse the repository at this point in the history
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
  • Loading branch information
guo-shaoge authored and ti-srebot committed Jul 11, 2022
1 parent 1baedb9 commit 7495b06
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions executor/index_lookup_hash_join.go
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,24 @@ func (iw *indexHashJoinInnerWorker) handleHashJoinInnerWorkerPanic(r interface{}
iw.wg.Done()
}

<<<<<<< HEAD
func (iw *indexHashJoinInnerWorker) handleTask(ctx context.Context, task *indexHashJoinTask, joinResult *indexHashJoinResult, h hash.Hash64, resultCh chan *indexHashJoinResult) error {
=======
func (iw *indexHashJoinInnerWorker) handleTask(ctx context.Context, task *indexHashJoinTask, joinResult *indexHashJoinResult, h hash.Hash64, resultCh chan *indexHashJoinResult) (err error) {
defer func() {
iw.memTracker.Consume(-iw.memTracker.BytesConsumed())
if task.keepOuterOrder {
if err != nil {
joinResult.err = err
select {
case <-ctx.Done():
case resultCh <- joinResult:
}
}
close(resultCh)
}
}()
>>>>>>> 87052dc2f... executor: fix index_lookup_hash_join hang when used with limit (#35820)
var joinStartTime time.Time
if iw.stats != nil {
start := time.Now()
Expand Down

0 comments on commit 7495b06

Please sign in to comment.