Skip to content

Commit 42f62e4

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 f733828 commit 42f62e4

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
@@ -6653,7 +6653,7 @@ heap_prepare_freeze_tuple(HeapTupleHeader tuple, TransactionId cutoff_xid,
66536653
frz->t_infomask &= ~HEAP_XMAX_BITS;
66546654
frz->xmax = newxmax;
66556655
if (flags & FRM_MARK_COMMITTED)
6656-
frz->t_infomask &= HEAP_XMAX_COMMITTED;
6656+
frz->t_infomask |= HEAP_XMAX_COMMITTED;
66576657
changed = true;
66586658
totally_frozen = false;
66596659
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy