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

Backport 876 to stable/8.2 #933

Merged
2 commits merged into from
Oct 11, 2023
Merged

Backport 876 to stable/8.2 #933

2 commits merged into from
Oct 11, 2023

Conversation

remcowesterhoud
Copy link
Contributor

When iterating in an open transaction, we would create an iterator containing all entries in the database as well as the entries in the transaction cache. This ensures any keys added in the same transaction are also encountered during iterating.

We do not do anything with the keys that are deleted within the transaction. As a result, when iterating we will go over keys that are already deleted. This is wrong. The keys are deleted, so we should not encounter them anymore during iterating.

(cherry picked from commit cc45114)
When iterating in an open transaction, we would create an iterator containing all entries in the database as well as the entries in the transaction cache. This ensures any keys added in the same transaction are also encountered during iterating.

We do not do anything with the keys that are deleted within the transaction. As a result, when iterating we will go over keys that are already deleted. This is wrong. The keys are deleted, so we should not encounter them anymore during iterating.

(cherry picked from commit 84be02b)
Copy link
Contributor

@nicpuppa nicpuppa left a comment

Choose a reason for hiding this comment

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

LGTM

bors merge

@github-actions
Copy link

Test Results

  47 files  ±0    47 suites  ±0   1m 57s ⏱️ -6s
101 tests +1  101 ✔️ +1  0 💤 ±0  0 ±0 
326 runs  +3  326 ✔️ +3  0 💤 ±0  0 ±0 

Results for commit 31439f9. ± Comparison against base commit d1dc633.

@ghost
Copy link

ghost commented Oct 11, 2023

Build succeeded:

@ghost ghost merged commit 9e73b1b into stable/8.2 Oct 11, 2023
@ghost ghost deleted the backport-876-to-stable/8.2 branch October 11, 2023 07:50
This pull request was closed.
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