Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit31b8db8

Browse files
committed
Fix potential data corruption during freeze
Fix oversight in3b97e68 bug fix. Bitwise AND is used instead of OR andit cleans all bits in t_infomask heap tuple field.Backpatch to 9.3
1 parentf1dae09 commit31b8db8

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
@@ -6627,7 +6627,7 @@ heap_prepare_freeze_tuple(HeapTupleHeader tuple, TransactionId cutoff_xid,
66276627
frz->t_infomask &= ~HEAP_XMAX_BITS;
66286628
frz->xmax=newxmax;
66296629
if (flags&FRM_MARK_COMMITTED)
6630-
frz->t_infomask&=HEAP_XMAX_COMMITTED;
6630+
frz->t_infomask|=HEAP_XMAX_COMMITTED;
66316631
changed= true;
66326632
totally_frozen= false;
66336633
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp