• Martin Holst Swende's avatar
    ethdb/pebble: prevent shutdown-panic (#27238) · 99394adc
    Martin Holst Swende authored
    One difference between pebble and leveldb is that the latter returns error when performing Get on a closed database, the former does a panic. This may be triggered during shutdown (see #27237)
    
    This PR changes the pebble driver so we check that the db is not closed already, for several operations. It also adds tests to the db test-suite, so the previously implicit assumption of "not panic:ing at ops on closed database" is covered by tests.
    99394adc
Name
Last commit
Last update
..
dbtest Loading commit data...
leveldb Loading commit data...
memorydb Loading commit data...
pebble Loading commit data...
remotedb Loading commit data...
batch.go Loading commit data...
database.go Loading commit data...
iterator.go Loading commit data...
snapshot.go Loading commit data...