ethdb/pebble: fix NewBatchWithSize to set db (#27350)

pull/27445/head
Martin Holst Swende 2 years ago committed by GitHub
parent 8a78a4f79f
commit 33fdd030b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      ethdb/pebble/pebble.go

@ -308,6 +308,7 @@ func (d *Database) NewBatch() ethdb.Batch {
func (d *Database) NewBatchWithSize(_ int) ethdb.Batch { func (d *Database) NewBatchWithSize(_ int) ethdb.Batch {
return &batch{ return &batch{
b: d.db.NewBatch(), b: d.db.NewBatch(),
db: d,
} }
} }

Loading…
Cancel
Save