No need to handle freelist as a specical case when freeing a page

Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
pull/788/head
Benjamin Wang 2024-07-17 13:25:50 +01:00
parent efc3eb649b
commit d1cd0deee6
1 changed files with 0 additions and 3 deletions

View File

@ -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++ {