-
-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kgo: bugfix transaction ending & beginning
Not having a mutext lock & unlock caused a race where a transaction could 1 A call .pause to pause inflight 2 A that could load that there _are_ inflight requests 3 B inflight could finish and broadcast 4 A could then signal.Wait The broadcast needed to trigger the wait in step 4, but the broadcast already happened because there was no lock. Also removes some redundant returns that made some aspects of seqRingResp confusing.
- Loading branch information
Showing
3 changed files
with
9 additions
and
12 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
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