Skip to content

core, ethdb: introduce database sync function #31703

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

rjl493456442
Copy link
Member

@rjl493456442 rjl493456442 commented Apr 24, 2025

This pull request introduces a SyncKeyValue function to the ethdb.KeyValueStore
interface, providing the ability to forcibly flush all previous writes to disk.

This functionality is critical for go-ethereum, which internally uses two independent
database engines: a key-value store (such as Pebble, LevelDB, or memoryDB for
testing) and a flat-file–based freezer. To ensure write-order consistency between
these engines, the key-value store must be explicitly synced before writing to the
freezer and vice versa.

Fixes

@rjl493456442 rjl493456442 requested a review from fjl as a code owner April 24, 2025 13:21
@Eduardo40796
Copy link

Nenhuma descrição fornecida.

Oi

@fjl fjl changed the title WIP: introduce database sync function core, ethdb: introduce database sync function Apr 29, 2025
@rjl493456442 rjl493456442 added this to the 1.15.11 milestone Apr 30, 2025
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