-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
distsqlrun: avoid flow.Waiting if called after a panic
If a panic occurred in a flow, flow.Wait() would still be called since it was deferred in Run. This would result in unnecessarily Waiting for components that would never be signalled to exit through context cancellation (since the panicking goroutine could be the one responsible to do so). Release note: None
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 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