Skip to content

Commit d72e6bf

Browse files
authored
Merge pull request #788 from ahrtr/simply_free_20240708
No need to handle freelist as a specical case when freeing a page
2 parents efc3eb6 + d1cd0de commit d72e6bf

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

internal/freelist/shared.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ func (t *shared) Free(txid common.Txid, p *common.Page) {
6767
allocTxid, ok := t.allocs[p.Id()]
6868
if ok {
6969
delete(t.allocs, p.Id())
70-
} else if p.IsFreelistPage() {
71-
// Freelist is always allocated by prior tx.
72-
allocTxid = txid - 1
7370
}
7471

7572
for id := p.Id(); id <= p.Id()+common.Pgid(p.Overflow()); id++ {

0 commit comments

Comments
 (0)