This commit is contained in:
Xiao__Ma 2021-04-16 21:07:28 +08:00 committed by zhaowenhao
parent 30e066555e
commit 08f2a403fa
1 changed files with 6 additions and 1 deletions

View File

@ -259,7 +259,12 @@ void HeapXlogDeleteOperatorPage(RedoBufferInfo *buffer, void *recorddata, Transa
htup->t_infomask &= ~(HEAP_XMAX_COMMITTED | HEAP_XMAX_INVALID | HEAP_XMAX_IS_MULTI | HEAP_IS_LOCKED | HEAP_MOVED);
HeapTupleHeaderClearHotUpdated(htup);
HeapTupleHeaderSetXmax(page, htup, recordxid);
HeapTupleHeaderSetCmax(htup, FirstCommandId, false);
if (!(xlrec->flags & XLH_DELETE_IS_SUPER)) {
HeapTupleHeaderSetXmax(page, htup, recordxid);
} else {
HeapTupleHeaderSetXmin(page, htup, FrozenTransactionId);
HeapTupleHeaderSetXmax(page, htup, FrozenTransactionId);
}
/* Mark the page as a candidate for pruning */
PageSetPrunable(page, recordxid);