ethdb/pebble: fix NewBatchWithSize to set db (#27350)
This commit is contained in:
parent
8a78a4f79f
commit
33fdd030b1
|
@ -308,6 +308,7 @@ func (d *Database) NewBatch() ethdb.Batch {
|
|||
func (d *Database) NewBatchWithSize(_ int) ethdb.Batch {
|
||||
return &batch{
|
||||
b: d.db.NewBatch(),
|
||||
db: d,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue