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

cometindex: avoid unnecessary rollbacks #5106

Merged
merged 1 commit into from
Feb 27, 2025

Conversation

cronokirby
Copy link
Contributor

We created a transaction too early in the previous version of the code, which meant that in the common case of skipping a batch of transactions, we would create the transaction before checking if we need to do anything.

Smoke tests should be sufficient to test.

Checklist before requesting a review

  • I have added guiding text to explain how a reviewer should test these changes.

  • If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

    indexing only

We created a transaction too early in the previous version of the code,
which meant that in the common case of skipping a batch of transactions,
we would create the transaction before checking if we need to do anything.
@cronokirby cronokirby force-pushed the cronokirby/cometindex-rollback-patch branch from d5f1fe8 to 3d8f974 Compare February 27, 2025 18:39
@conorsch conorsch merged commit 98fb73d into main Feb 27, 2025
9 checks passed
@conorsch conorsch deleted the cronokirby/cometindex-rollback-patch branch February 27, 2025 22:14
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.

2 participants