mirror of https://github.com/etcd-io/bbolt.git
No need to handle freelist as a specical case when freeing a page
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>pull/788/head
parent
efc3eb649b
commit
d1cd0deee6
|
@ -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++ {
|
||||
|
|
Loading…
Reference in New Issue