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 8, 2024
1 parent 3fd94a4 commit eaf4f1e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions freelist.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ func (f *freelist) free(txid common.Txid, p *common.Page) {
allocTxid, ok := f.allocs[p.Id()]
if ok {
delete(f.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 eaf4f1e

Please sign in to comment.