mirror of
https://github.com/postgres/postgres.git
synced 2026-04-15 22:10:45 -04:00
Fix potential data corruption during freeze
Fix oversight in 3b97e6823b bug fix. Bitwise AND is used instead of OR and
it cleans all bits in t_infomask heap tuple field.
Backpatch to 9.3
This commit is contained in:
parent
fb63a0aa33
commit
b90e4ca3ed
1 changed files with 1 additions and 1 deletions
|
|
@ -5929,7 +5929,7 @@ heap_prepare_freeze_tuple(HeapTupleHeader tuple, TransactionId cutoff_xid,
|
|||
frz->t_infomask &= ~HEAP_XMAX_BITS;
|
||||
frz->xmax = newxmax;
|
||||
if (flags & FRM_MARK_COMMITTED)
|
||||
frz->t_infomask &= HEAP_XMAX_COMMITTED;
|
||||
frz->t_infomask |= HEAP_XMAX_COMMITTED;
|
||||
changed = true;
|
||||
}
|
||||
else if (flags & FRM_RETURN_IS_MULTI)
|
||||
|
|
|
|||
Loading…
Reference in a new issue