From d1cd0deee630863cf950eb0b94f0f42a76f7a70a Mon Sep 17 00:00:00 2001 From: Benjamin Wang Date: Wed, 17 Jul 2024 13:25:50 +0100 Subject: [PATCH] No need to handle freelist as a specical case when freeing a page Signed-off-by: Benjamin Wang --- internal/freelist/shared.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/freelist/shared.go b/internal/freelist/shared.go index ac06309df..9914cc7af 100644 --- a/internal/freelist/shared.go +++ b/internal/freelist/shared.go @@ -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++ {