Unverified Commit 33fdd030 authored by Martin Holst Swende's avatar Martin Holst Swende Committed by GitHub

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

parent 8a78a4f7
...@@ -308,6 +308,7 @@ func (d *Database) NewBatch() ethdb.Batch { ...@@ -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,
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment