Skip to content

opt: move locking durability check back to optbuilder#112082

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
michae2:back_to_optbuilder
Oct 10, 2023
Merged

opt: move locking durability check back to optbuilder#112082
craig[bot] merged 1 commit intocockroachdb:masterfrom
michae2:back_to_optbuilder

Conversation

@michae2
Copy link
Copy Markdown
Collaborator

@michae2 michae2 commented Oct 10, 2023

In #110945 I moved the locking durability check from optbuilder to execbuilder to allow a memo prepared under serializable isolation to execute under read committed isolation. As it turns out, however, memo staleness prevents this. Move the durability check back to optbuilder.

We have to keep the shared locking check in execbuilder to correctly throw errors if shared locking is used in a read-only transaction.

Informs: #100194

Release note: None

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

In cockroachdb#110945 I moved the locking durability check from optbuilder to
execbuilder to allow a memo prepared under serializable isolation to
execute under read committed isolation. As it turns out, however, memo
staleness prevents this. Move the durability check back to optbuilder.

We have to keep the shared locking check in execbuilder to correctly
throw errors if shared locking is used in a read-only transaction.

Informs: cockroachdb#100194

Release note: None
@michae2 michae2 force-pushed the back_to_optbuilder branch from 369893b to f32901d Compare October 10, 2023 05:58
@michae2 michae2 requested review from DrewKimball and msirek October 10, 2023 06:46
@michae2 michae2 marked this pull request as ready for review October 10, 2023 06:46
@michae2 michae2 requested a review from a team as a code owner October 10, 2023 06:46
Copy link
Copy Markdown
Collaborator

@DrewKimball DrewKimball left a comment

Choose a reason for hiding this comment

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

:lgtm: Nice!

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

@michae2
Copy link
Copy Markdown
Collaborator Author

michae2 commented Oct 10, 2023

Thank you!

bors r=DrewKimball

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Oct 10, 2023

Build succeeded:

@craig craig bot merged commit ce1d751 into cockroachdb:master Oct 10, 2023
@michae2 michae2 deleted the back_to_optbuilder branch October 10, 2023 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants