Skip to content

Commit

Permalink
server: fix load leak (pingcap#15134)
Browse files Browse the repository at this point in the history
  • Loading branch information
cfzjywxk authored Mar 4, 2020
1 parent d259e90 commit b712d02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,8 @@ func (cc *clientConn) handleLoadData(ctx context.Context, loadDataInfo *executor
loadDataInfo.InitQueues()
loadDataInfo.SetMaxRowsInBatch(uint64(loadDataInfo.Ctx.GetSessionVars().DMLBatchSize))
loadDataInfo.StartStopWatcher()
// let stop watcher goroutine quit
defer loadDataInfo.ForceQuit()
err = loadDataInfo.Ctx.NewTxn(ctx)
if err != nil {
return err
Expand Down

0 comments on commit b712d02

Please sign in to comment.