Skip to content

revert: prune: use Put(Current) mdbx's method instead of DelCurrent+Put - #20643

Merged
AskAlexSharov merged 1 commit into
release/3.4from
alex/revert_upsert_34
Apr 18, 2026
Merged

AskAlexSharov merged 1 commit into
release/3.4from
alex/revert_upsert_34

Conversation

@AskAlexSharov

@AskAlexSharov AskAlexSharov commented Apr 18, 2026 •

Copy link
Copy Markdown
Collaborator

revert changes introduced in https://github.com/erigontech/erigon/pull/19914/changes

reason: just a moon-shot against "gas missmatch" error

@erigon-copilot erigon-copilot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. If PutCurrent is causing incorrect behavior/regressions in this cursor path, reverting to the explicit DeleteCurrent + Put sequence is the safer choice on release/3.4. The branch conditions still preserve the original optimization: plain Put when the current step prefix differs, and only replace-in-place when the first 8 bytes match the current step.

@AskAlexSharov
AskAlexSharov enabled auto-merge (squash) April 18, 2026 09:03
@AskAlexSharov
AskAlexSharov merged commit 75a35df into release/3.4 Apr 18, 2026
21 checks passed
@AskAlexSharov
AskAlexSharov deleted the alex/revert_upsert_34 branch April 18, 2026 09:05
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.

1 participant