Skip to content

Commit

Permalink
No need to handle freelist as a specical case when freeing a page
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Wang <[email protected]>
  • Loading branch information
ahrtr committed Jul 17, 2024
1 parent efc3eb6 commit d1cd0de
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions internal/freelist/shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -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++ {
Expand Down

0 comments on commit d1cd0de

Please sign in to comment.