mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-23 12:07:17 +00:00
trie: add missing unlock call in error case (#18985)
This commit is contained in:
parent
98e0bedcd7
commit
bb7c786b09
@ -679,6 +679,7 @@ func (db *Database) Commit(node common.Hash, report bool) error {
|
||||
}
|
||||
if batch.ValueSize() > ethdb.IdealBatchSize {
|
||||
if err := batch.Write(); err != nil {
|
||||
db.lock.RUnlock()
|
||||
return err
|
||||
}
|
||||
batch.Reset()
|
||||
|
Loading…
Reference in New Issue
Block a user