1
0
Fork 0
forked from forks/go-ethereum
go-ethereum-modded-tocallarg/ethdb/leveldb
rjl493456442 10519768a2
core, ethdb: introduce database sync function (#31703)
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 
- https://github.com/ethereum/go-ethereum/issues/31405
- https://github.com/ethereum/go-ethereum/issues/29819
2025-05-08 19:10:26 +08:00
..
leveldb.go core, ethdb: introduce database sync function (#31703) 2025-05-08 19:10:26 +08:00
leveldb_test.go ethdb: add benchmark test suite (#26659) 2023-02-10 04:35:00 -05:00