Skip to content

db/state: fix btree cursor leak in debugIteratePrefixLatest#20468

Merged
AskAlexSharov merged 2 commits intomainfrom
fix/debugIteratePrefixLatest-cursor-leak
Apr 10, 2026
Merged

db/state: fix btree cursor leak in debugIteratePrefixLatest#20468
AskAlexSharov merged 2 commits intomainfrom
fix/debugIteratePrefixLatest-cursor-leak

Conversation

@sudeepdino008
Copy link
Copy Markdown
Member

@sudeepdino008 sudeepdino008 commented Apr 10, 2026

  • Close btree cursor when Next() advances past the prefix boundary in the FILE_CURSOR merge loop
  • Drain heap on function return, closing any remaining btree cursors

@AskAlexSharov AskAlexSharov added this pull request to the merge queue Apr 10, 2026
Merged via the queue into main with commit d89be88 Apr 10, 2026
35 checks passed
@AskAlexSharov AskAlexSharov deleted the fix/debugIteratePrefixLatest-cursor-leak branch April 10, 2026 13:53
AskAlexSharov pushed a commit that referenced this pull request Apr 11, 2026
- Close btree cursor when `Next()` advances past the prefix boundary in
the FILE_CURSOR merge loop
- Drain heap on function return, closing any remaining btree cursors
AskAlexSharov added a commit that referenced this pull request Apr 11, 2026
…20488)

Cherry-pick of #20468.

Co-authored-by: moskud <sudeepdino008@gmail.com>
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