Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kv/spanset: permit writes to lock table by shared lock latching configuration #111526

Conversation

nvanbenschoten
Copy link
Member

Fixes #111409.
Fixes #111492.

This commit updates addLockTableSpans to account for the way that shared locking requests declare their latches. Even though they declare a "read" latch, they do so at max timestamp, which gives them sufficient isolation to write to the lock table without having to declare a write latch and be serialized with other shared lock acquisitions.

Release note: None

…guration

Fixes cockroachdb#111409.
Fixes cockroachdb#111492.

This commit updates addLockTableSpans to account for the way that shared locking
requests declare their latches. Even though they declare a "read" latch, they do
so at max timestamp, which gives them sufficient isolation to write to the lock
table without having to declare a write latch and be serialized with other
shared lock acquisitions.

Release note: None
@nvanbenschoten nvanbenschoten requested a review from a team as a code owner September 29, 2023 18:48
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@arulajmani arulajmani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @nvanbenschoten)

@nvanbenschoten
Copy link
Member Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Sep 29, 2023

Build succeeded:

@craig craig bot merged commit 41927e1 into cockroachdb:master Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants