Skip to content

Commit

Permalink
ethdb/pebble: fix NewBatchWithSize to set db (ethereum#27350)
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman committed May 25, 2023
1 parent 8a78a4f commit 33fdd03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ethdb/pebble/pebble.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}

Expand Down

0 comments on commit 33fdd03

Please sign in to comment.