mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
leveldb: fix nil deref
This commit is contained in:
parent
1fb58b2ac1
commit
7f3956152d
1 changed files with 3 additions and 1 deletions
|
|
@ -455,7 +455,9 @@ func (b *batch) ValueSize() int {
|
|||
|
||||
// Write flushes any accumulated data to disk.
|
||||
func (b *batch) Write() error {
|
||||
if b.writeGauge != nil {
|
||||
b.writeGauge.Inc(1)
|
||||
}
|
||||
return b.db.Write(b.b, nil)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue