Skip to content

Comments

fix limit scanner use in sweeper#116

Merged
Luit merged 4 commits intomainfrom
fix-limited-sweeper
Jan 29, 2026
Merged

fix limit scanner use in sweeper#116
Luit merged 4 commits intomainfrom
fix-limited-sweeper

Conversation

@Luit
Copy link
Contributor

@Luit Luit commented Jan 28, 2026

The LimitScanner's use of a sentinel error inside an LMDB transaction aborted the transaction. I instead moved the "limit reached" marker to the cursor returned by Last().

The LimitScanner's use of a sentinel error inside an LMDB transaction aborted
the transaction. I instead moved the "limit reached" marker to the cursor
returned by Last().
@Luit Luit requested review from nvaatstra and wojas January 28, 2026 12:06
wojas
wojas previously requested changes Jan 29, 2026
Copy link
Member

@wojas wojas left a comment

Choose a reason for hiding this comment

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

The new logic looks OK. The PR could have been kept more minimal with just a check for the error and assignment to a bool, but no objections to the explicit return value here, because it does make the code harder to hold wrong.

The extra locking really needs to be removed, however. LGTM if that is fixed.

@Luit Luit force-pushed the fix-limited-sweeper branch from 0097641 to 0141333 Compare January 29, 2026 14:06
@Luit Luit dismissed wojas’s stale review January 29, 2026 14:13

Changed. Github didn't pick up on that somehow?

Copy link
Contributor

@nvaatstra nvaatstra left a comment

Choose a reason for hiding this comment

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

LGTM

@Luit Luit merged commit e1300da into main Jan 29, 2026
5 checks passed
@Luit Luit deleted the fix-limited-sweeper branch January 29, 2026 15:50
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