-
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.
60425: sql: fix a race in the internal executor r=yuzefovich a=yuzefovich The recent change to make the internal executor streaming introduced a race between `initConnEx` returning (and, thus, assigning a stmtBuf value) and the connExecutor's goroutine being spawn up. As a result, the assumption of the callbacks that the stmtBuf is non-nil might not be satisfied. This commit fixes the issue by creating the objects in question before `initConnEx` is called (which is also before the connExecutor goroutine starts). Fixes: #60423. Release note: None Co-authored-by: Yahor Yuzefovich <[email protected]>
- Loading branch information
Showing
1 changed file
with
13 additions
and
24 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