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
......@@ -307,7 +307,8 @@ func (d *Database) NewBatch() ethdb.Batch {
// batch object without any pre-allocated space.
func (d *Database) NewBatchWithSize(_ int) ethdb.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