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

sql: fix usages of internal executor to delegate from user transaction #118640

Merged
merged 3 commits into from
Feb 2, 2024

Conversation

rafiss
Copy link
Collaborator

@rafiss rafiss commented Feb 2, 2024

These commits fix a few usages of the internal executor to use the new interface which delegates to an internal executor that shares the outer txn's state.

For ease of review, the testing for this is in a separate PR (where the bugs were discovered): #107990

informs #100178

This patch adds the ability to inject an isql.Txn into a KVAccessor.
This makes it possible to make the KVAccessor use an internal executor
that is tied to the outer transaction's state, rather than using the
internal executor that is initialized during node startup.

Release note: None
@rafiss rafiss requested a review from fqazi February 2, 2024 14:09
@rafiss rafiss requested review from a team as code owners February 2, 2024 14:09
@rafiss rafiss requested review from msbutler and removed request for a team February 2, 2024 14:09
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@fqazi fqazi left a comment

Choose a reason for hiding this comment

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

Nice find :lgtm:

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

@rafiss
Copy link
Collaborator Author

rafiss commented Feb 2, 2024

tftr!

bors r+

@craig
Copy link
Contributor

craig bot commented Feb 2, 2024

Build succeeded:

@craig craig bot merged commit 9434801 into cockroachdb:master Feb 2, 2024
9 of 10 checks passed
@rafiss rafiss deleted the fix-internal-exec-usages branch February 3, 2024 04:06
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.

None yet

3 participants