Clear page from RBF dirty cache on free.

This commit is contained in:
Ben Johnson 2022-03-24 09:12:15 -06:00
parent 29754b53b6
commit 52ab38d50d

View file

@ -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