Merge pull request #788 from ahrtr/simply_free_20240708

No need to handle freelist as a specical case when freeing a page
pull/796/head
Benjamin Wang 2024-07-22 12:54:30 +01:00 committed by GitHub
commit d72e6bf8c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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++ {