Skip to content

Commit

Permalink
close the pools
Browse files Browse the repository at this point in the history
  • Loading branch information
tangenta committed Nov 30, 2022
1 parent 3dc7d19 commit 360f4ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ddl/index_cop.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ func (c *copReqSenderPool) close() {
}
c.wg.Wait()
close(c.resultsCh)
close(c.idxBufPool)
close(c.srcChkPool)
}

func (c *copReqSenderPool) getIndexRecordsAndChunks() ([]*indexRecord, *chunk.Chunk) {
Expand Down

0 comments on commit 360f4ad

Please sign in to comment.