forked from cockroachdb/pebble
-
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.
db: guard against concurrent batch writes during Commit
Add a guardrail that ensures a batch isn't in the process of being committed when applying a mutation to the Batch. We've observed panics during batch application that suggest concurrent modification of the batch, and these guardrails will help surface any races more readily. Informs cockroachdb/cockroach#113268 Resolve cockroachdb#3024.
- Loading branch information
Showing
2 changed files
with
26 additions
and
5 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