mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-12 15:51:01 +00:00
Clear page from RBF dirty cache on free.
This commit is contained in:
parent
29754b53b6
commit
52ab38d50d
1 changed files with 3 additions and 0 deletions
|
|
@ -1118,6 +1118,9 @@ func (tx *Tx) allocateNewPgno() uint32 {
|
|||
|
||||
// deallocate releases a page number to the freelist.
|
||||
func (tx *Tx) freePgno(pgno uint32) (outErr error) {
|
||||
delete(tx.dirtyPages, pgno)
|
||||
delete(tx.dirtyBitmapPages, pgno)
|
||||
|
||||
if tx.modifyingFreelist {
|
||||
tx.pendingFreelistAdds = append(tx.pendingFreelistAdds, pgno)
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue