Skip to content

Commit

Permalink
executor: fix data race (pingcap#2134)
Browse files Browse the repository at this point in the history
  • Loading branch information
zimulala authored and shenli committed Nov 30, 2016
1 parent 9311ce6 commit bb203af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion executor/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -654,8 +654,8 @@ func (e *HashJoinExec) prepare() error {
func (e *HashJoinExec) waitJoinWorkersAndCloseResultChan() {
e.wg.Wait()
close(e.resultRows)
close(e.closeCh)
e.hashTable = nil
close(e.closeCh)
}

// doJoin does join job in one goroutine.
Expand Down

0 comments on commit bb203af

Please sign in to comment.