Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
XuHuaiyu committed Dec 14, 2021
1 parent d2e3d20 commit c834c11
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion executor/join.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ func (e *HashJoinExec) Close() error {

// Open implements the Executor Open interface.
func (e *HashJoinExec) Open(ctx context.Context) error {
if err := e.baseExecutor.Open(ctx); err != nil {
return err
}
e.prepared = false
e.memTracker = memory.NewTracker(e.id, -1)
e.memTracker.AttachTo(e.ctx.GetSessionVars().StmtCtx.MemTracker)
Expand All @@ -181,7 +184,7 @@ func (e *HashJoinExec) Open(ctx context.Context) error {
}
e.ctx.GetSessionVars().StmtCtx.RuntimeStatsColl.RegisterStats(e.id, e.stats)
}
return e.baseExecutor.Open(ctx)
return nil
}

// fetchProbeSideChunks get chunks from fetches chunks from the big table in a background goroutine
Expand Down

0 comments on commit c834c11

Please sign in to comment.