mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-05 07:42:57 +00:00
ethdb/pebble: fix NewBatchWithSize to set db (#27350)
This commit is contained in:
parent
8a78a4f79f
commit
33fdd030b1
1 changed files with 2 additions and 1 deletions
|
|
@ -307,7 +307,8 @@ func (d *Database) NewBatch() ethdb.Batch {
|
||||||
// batch object without any pre-allocated space.
|
// batch object without any pre-allocated space.
|
||||||
func (d *Database) NewBatchWithSize(_ int) ethdb.Batch {
|
func (d *Database) NewBatchWithSize(_ int) ethdb.Batch {
|
||||||
return &batch{
|
return &batch{
|
||||||
b: d.db.NewBatch(),
|
b: d.db.NewBatch(),
|
||||||
|
db: d,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue