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

This commit is contained in:
Martin Holst Swende
2023-05-25 10:31:05 +03:00
committed by GitHub
parent 8a78a4f79f
commit 33fdd030b1
+2 -1
View File
@@ -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,
}
}