1
0
Fork 0
forked from forks/go-ethereum
go-ethereum-modded-tocallarg/ethdb
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
..
dbtest ethdb: add DeleteRange feature (#30668) 2024-10-25 17:33:46 +02:00
leveldb core, ethdb: introduce database sync function (#31703) 2025-05-08 19:10:26 +08:00
memorydb core, ethdb: introduce database sync function (#31703) 2025-05-08 19:10:26 +08:00
pebble core, ethdb: introduce database sync function (#31703) 2025-05-08 19:10:26 +08:00
remotedb core, ethdb: introduce database sync function (#31703) 2025-05-08 19:10:26 +08:00
batch.go core, ethdb, tests, trie: implement NewBatchWithSize API for batcher (#24392) 2022-02-15 15:15:13 +02:00
database.go core, ethdb: introduce database sync function (#31703) 2025-05-08 19:10:26 +08:00
iterator.go all: simplify and fix database iteration with prefix/start (#20808) 2020-04-15 14:08:53 +03:00