Skip to content

Commit b90e4ca

Browse files
committed
Fix potential data corruption during freeze
Fix oversight in 3b97e68 bug fix. Bitwise AND is used instead of OR and it cleans all bits in t_infomask heap tuple field. Backpatch to 9.3
1 parent fb63a0a commit b90e4ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/access/heap/heapam.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5929,7 +5929,7 @@ heap_prepare_freeze_tuple(HeapTupleHeader tuple, TransactionId cutoff_xid,
59295929
frz->t_infomask &= ~HEAP_XMAX_BITS;
59305930
frz->xmax = newxmax;
59315931
if (flags & FRM_MARK_COMMITTED)
5932-
frz->t_infomask &= HEAP_XMAX_COMMITTED;
5932+
frz->t_infomask |= HEAP_XMAX_COMMITTED;
59335933
changed = true;
59345934
}
59355935
else if (flags & FRM_RETURN_IS_MULTI)

0 commit comments

Comments
 (0)