mirror of https://github.com/etcd-io/bbolt.git
Merge pull request #788 from ahrtr/simply_free_20240708
No need to handle freelist as a specical case when freeing a pagepull/796/head
commit
d72e6bf8c1
|
@ -67,9 +67,6 @@ func (t *shared) Free(txid common.Txid, p *common.Page) {
|
|||
allocTxid, ok := t.allocs[p.Id()]
|
||||
if ok {
|
||||
delete(t.allocs, p.Id())
|
||||
} else if p.IsFreelistPage() {
|
||||
// Freelist is always allocated by prior tx.
|
||||
allocTxid = txid - 1
|
||||
}
|
||||
|
||||
for id := p.Id(); id <= p.Id()+common.Pgid(p.Overflow()); id++ {
|
||||
|
|
Loading…
Reference in New Issue