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: attempt to reduce duplication in legacy schema changer txn management #91567

Merged
merged 1 commit into from
Nov 9, 2022

Conversation

ZhouXing19
Copy link
Collaborator

@ZhouXing19 ZhouXing19 commented Nov 9, 2022

These functions can all be defined in terms of txnWithExecutor. It was
confusing that they were not.

Epic: none

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@ajwerner ajwerner left a comment

Choose a reason for hiding this comment

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

This stuff is crufty. This seems fine, though sort of shocking how repetitive the code is around these parts. If somebody didn't know better, they might assume it was for a reason, but I don't think it is.

What if we re-arranged things like in this commit?

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @ZhouXing19)

Copy link
Collaborator Author

@ZhouXing19 ZhouXing19 left a comment

Choose a reason for hiding this comment

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

What if we re-arranged things like in this commit?

Wow thanks for writing this up. Yeah it makes sense to have things all tracing down to txnWithExecutor. Do you want me to close this PR or cherry-pick your commit?

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @ZhouXing19)

@ajwerner
Copy link
Contributor

ajwerner commented Nov 9, 2022

No strong preferences, cherry-pick works for me.

…ement

These functions can all be defined in terms of `txnWithExecutor`. It was
confusing that they were not.

Release note: None
@ZhouXing19 ZhouXing19 changed the title sql: fix makeFixedTimestampInternalExecRunner to use correct Internal Executor sql: attempt to reduce duplication in legacy schema changer txn management Nov 9, 2022
@ZhouXing19 ZhouXing19 marked this pull request as ready for review November 9, 2022 04:37
@ZhouXing19 ZhouXing19 requested review from a team and ajwerner November 9, 2022 04:37
Copy link
Contributor

@ajwerner ajwerner 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 2 of 2 files at r2, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @ZhouXing19)

@ZhouXing19
Copy link
Collaborator Author

Thanks!
bors r=ajwerner

@craig
Copy link
Contributor

craig bot commented Nov 9, 2022

Build succeeded:

@craig craig bot merged commit 15369db into cockroachdb:master Nov 9, 2022
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