• Martin Holst Swende's avatar
    core/rawdb: fix cornercase shutdown behaviour in freezer (#26485) · 0b53b290
    Martin Holst Swende authored
    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.
    0b53b290
Name
Last commit
Last update
..
abidump Loading commit data...
abigen Loading commit data...
bootnode Loading commit data...
checkpoint-admin Loading commit data...
clef Loading commit data...
devp2p Loading commit data...
ethkey Loading commit data...
evm Loading commit data...
faucet Loading commit data...
geth Loading commit data...
p2psim Loading commit data...
puppeth Loading commit data...
rlpdump Loading commit data...
utils Loading commit data...