-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kv: latching changes to support shared locks
Reads that acquire shared locks need to be isolated with concurrent write requests. They also need to be isolated with exclusive-locking reads. They can, however, run concurrently with other shared locking reads and non-locking reads. As described in the shared locks RFC, to make these semantics work, shared-locking reads should acquire read latches at `hlc.MaxTimestamp`. This patch makes that change and adds test cases for all these interactions. Closes #102264 Release note: None
- Loading branch information
1 parent
ef9d426
commit 82cc8d2
Showing
4 changed files
with
714 additions
and
30 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
Oops, something went wrong.