Merge pull request #1993 from molecula/sup-193

Clear page from RBF dirty cache on free.
This commit is contained in:
Ben Johnson 2022-03-24 11:42:53 -06:00 committed by GitHub
commit cc86d9ba19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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