forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
store/tikv: fix a potential goroutine leak problem in copIterator (pi…
…ngcap#6140) copIterator.Close() closes finished channel and wait for worker goroutines to exit, worker goroutine send response to channel but nobody receive from the channel (copIterator already closed), so those goroutine leak and Close() function hang forever. Change the worker goroutine to check both response channel and finished channel.
- Loading branch information
1 parent
9fe407f
commit 3ff51fb
Showing
2 changed files
with
28 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters