plugeth/cmd/geth
Martin Holst Swende 0b53b29078
core/rawdb: fix cornercase shutdown behaviour in freezer (#26485)
This PR does a few things. 
It fixes a shutdown-order flaw in the chainfreezer. Previously, the chain-freezer would shutdown the freezer backend first, and then signal for the loop to exit. This can lead to a scenario where the freezer tries to fsync closed files, which is an error-conditon that could lead to exit via log.Crit. 

It also makes the printout more detailed when truncating 'dangling' items, by showing the exact number instead of approximate MB.

This PR also adds calls to fsync files before closing them, and also makes the `db inspect` command slightly more robust.
2023-01-16 03:57:27 -05:00
..
testdata cmd/geth: update vulnerabilities.json testdata (#24856) 2022-05-16 13:41:36 +02:00
accountcmd_test.go cmd: migrate to urfave/cli/v2 (#24751) 2022-06-27 18:22:36 +02:00
accountcmd.go cmd: migrate to urfave/cli/v2 (#24751) 2022-06-27 18:22:36 +02:00
attach_test.go cmd/geth, cmd/utils: geth attach with custom headers (#25829) 2022-09-30 13:50:25 +02:00
chaincmd.go core, eth, les, tests, trie: abstract node scheme (#25532) 2022-11-28 14:31:28 +01:00
config.go cmd, core, eth, els, params: disallow setheads below genesis, tweaks 2023-01-06 15:29:58 +02:00
consolecmd_test.go cmd/geth, core: fix typo in comment (#25954) 2022-10-11 09:37:33 +02:00
consolecmd.go cmd/geth, cmd/utils: geth attach with custom headers (#25829) 2022-09-30 13:50:25 +02:00
dao_test.go all: replace uses of ioutil with io and os (#24869) 2022-05-16 11:59:35 +02:00
dbcmd.go core/rawdb: fix cornercase shutdown behaviour in freezer (#26485) 2023-01-16 03:57:27 -05:00
exportcmd_test.go cmd/utils: enable snapshot generation in import-mode (#25990) 2022-10-19 08:20:39 +02:00
genesis_test.go cmd/geth: eth/catalyst: enable authrpc by default (#25152) 2022-07-23 09:56:02 +02:00
les_test.go cmd/geth: eth/catalyst: enable authrpc by default (#25152) 2022-07-23 09:56:02 +02:00
main.go cmd, core, eth, els, params: disallow setheads below genesis, tweaks 2023-01-06 15:29:58 +02:00
misccmd.go internal/version: use gitCommit injection in version handling code (#25851) 2022-09-23 14:08:25 +02:00
run_test.go all: use T.TempDir to create temporary test directories (#24633) 2022-04-08 15:44:55 +02:00
snapshot.go cmd, core, eth, les, light: track deleted nodes (#25757) 2022-09-27 10:01:02 +02:00
verkle.go cmd/geth: fix help output issues (#25941) 2022-10-06 19:59:23 +02:00
version_check_test.go all: add whitespace linter (#25312) 2022-07-25 13:14:03 +03:00
version_check.go cmd: migrate to urfave/cli/v2 (#24751) 2022-06-27 18:22:36 +02:00