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

enginepb,concurrency: clean up {,the usage of} TxnSeqIsIgnored #109236

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

arulajmani
Copy link
Collaborator

Prior to this patch, we were rolling out bespoke logic to determine whether a sequence number was ignored or not when acquiring/updating locks in the lock table. This patch switches that usage to call into enginepb.TxnSeqIsIgnored instead.

While here, we also change the implementation of TxnSeqIsIgnored to use a binary search and update some commentary.

Epic: none

Release note: None

Prior to this patch, we were rolling out bespoke logic to determine
whether a sequence number was ignored or not when acquiring/updating
locks in the lock table. This patch switches that usage to call into
enginepb.TxnSeqIsIgnored instead.

While here, we also change the implementation of TxnSeqIsIgnored to
use a binary search and update some commentary.

Epic: none

Release note: None
@arulajmani arulajmani requested review from a team as code owners August 22, 2023 14:54
@arulajmani arulajmani requested a review from itsbilal August 22, 2023 14:54
@blathers-crl
Copy link

blathers-crl bot commented Aug 22, 2023

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@nvanbenschoten nvanbenschoten 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 r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @itsbilal)

@arulajmani
Copy link
Collaborator Author

TFTR, and thanks for the nudge to clean this up!

bors r=nvanbenschoten

@craig
Copy link
Contributor

craig bot commented Aug 22, 2023

Build succeeded:

@craig craig bot merged commit 33d6552 into cockroachdb:master Aug 22, 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
Development

Successfully merging this pull request may close these issues.

3 participants