mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-22 03:30:35 +00:00
99394adcb8
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. |
||
---|---|---|
.. | ||
dbtest | ||
leveldb | ||
memorydb | ||
pebble | ||
remotedb | ||
batch.go | ||
database.go | ||
iterator.go | ||
snapshot.go |