Skip to content

db/state: fix spurious accessor rebuild for post-merge subset files#19987

Merged
AskAlexSharov merged 4 commits intorelease/3.4from
alex/spur_acc_34
Mar 22, 2026
Merged

db/state: fix spurious accessor rebuild for post-merge subset files#19987
AskAlexSharov merged 4 commits intorelease/3.4from
alex/spur_acc_34

Conversation

@AskAlexSharov
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Collaborator

@Giulio2002 Giulio2002 left a comment

Choose a reason for hiding this comment

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

LGTM — focused bug fix: Close() methods now properly call closeFilesAndRemove() when refcount drops to 0 with canDelete=true, preventing leaked FDs and spurious accessor rebuilds. Good test coverage.

@anacrolix anacrolix self-assigned this Mar 20, 2026
@AskAlexSharov AskAlexSharov merged commit 7b3b21f into release/3.4 Mar 22, 2026
21 of 22 checks passed
@AskAlexSharov AskAlexSharov deleted the alex/spur_acc_34 branch March 22, 2026 03:07
erigon-copilot Bot pushed a commit that referenced this pull request Mar 23, 2026
…19987)

Co-authored-by: Matt Joiner <anacrolix@gmail.com>
Co-authored-by: Giulio Rebuffo <giulio.rebuffo@gmail.com>
github-merge-queue Bot pushed a commit that referenced this pull request Mar 23, 2026
…erge subset files (#20077)

**[SharovBot]**

Cherry-pick of #19987 (from `release/3.4`) to `main`.

Fixes spurious accessor rebuild triggered for post-merge subset files in
db/state.

Co-authored-by: Giulio rebuffo <giulio.rebuffo@gmail.com>

Co-authored-by: Alex Sharov <AskAlexSharov@gmail.com>
Co-authored-by: Matt Joiner <anacrolix@gmail.com>
Co-authored-by: Giulio Rebuffo <giulio.rebuffo@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.

3 participants