• AusIV's avatar
    core/rawdb: stop freezer process as part of freezer.Close() (#21010) · 069a7e1f
    AusIV authored
    * core/rawdb: Stop freezer process as part of freezer.Close()
    
    When you call db.Close(), it was closing the leveldb database first,
    then closing the freezer, but never stopping the freezer process.
    This could cause the freezer to attempt to write to leveldb after
    leveldb had been closed, leading to a crash with a non-zero exit code.
    
    This change adds a quit channel to the freezer, and freezer.Close()
    will not return until the freezer process has stopped.
    
    Additionally, when you call freezerdb.Close(), it will close the
    AncientStore before closing leveldb, to ensure that the freezer goroutine
    will be stopped before leveldb is closed.
    
    * core/rawdb: Fix formatting for golint
    
    * core/rawdb: Use backoff flag to avoid repeating select
    
    * core/rawdb: Include accidentally omitted backoff
    069a7e1f
Name
Last commit
Last update
..
asm Loading commit data...
bloombits Loading commit data...
forkid Loading commit data...
rawdb Loading commit data...
state Loading commit data...
types Loading commit data...
vm Loading commit data...
.gitignore Loading commit data...
bench_test.go Loading commit data...
block_validator.go Loading commit data...
block_validator_test.go Loading commit data...
blockchain.go Loading commit data...
blockchain_insert.go Loading commit data...
blockchain_test.go Loading commit data...
blocks.go Loading commit data...
chain_indexer.go Loading commit data...
chain_indexer_test.go Loading commit data...
chain_makers.go Loading commit data...
chain_makers_test.go Loading commit data...
dao_test.go Loading commit data...
error.go Loading commit data...
events.go Loading commit data...
evm.go Loading commit data...
gaspool.go Loading commit data...
gen_genesis.go Loading commit data...
gen_genesis_account.go Loading commit data...
genesis.go Loading commit data...
genesis_alloc.go Loading commit data...
genesis_test.go Loading commit data...
headerchain.go Loading commit data...
mkalloc.go Loading commit data...
state_prefetcher.go Loading commit data...
state_processor.go Loading commit data...
state_transition.go Loading commit data...
tx_cacher.go Loading commit data...
tx_journal.go Loading commit data...
tx_list.go Loading commit data...
tx_list_test.go Loading commit data...
tx_noncer.go Loading commit data...
tx_pool.go Loading commit data...
tx_pool_test.go Loading commit data...
types.go Loading commit data...