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

This commit is contained in:
Martin Holst Swende 2023-05-25 09:31:05 +02:00 committed by GitHub
parent 8a78a4f79f
commit 33fdd030b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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,
}
}