Skip to content

Commit 33fdd03

Browse files
authored
ethdb/pebble: fix NewBatchWithSize to set db (#27350)
1 parent 8a78a4f commit 33fdd03

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ethdb/pebble/pebble.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,8 @@ func (d *Database) NewBatch() ethdb.Batch {
307307
// batch object without any pre-allocated space.
308308
func (d *Database) NewBatchWithSize(_ int) ethdb.Batch {
309309
return &batch{
310-
b: d.db.NewBatch(),
310+
b: d.db.NewBatch(),
311+
db: d,
311312
}
312313
}
313314

0 commit comments

Comments
 (0)