Skip to content

Commit cf3a266

Browse files
author
Konstantin Knizhnik
committed
Fix bug in storing CID to oldrecord in heap_update
1 parent 31b4a78 commit cf3a266

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/access/heap/heapam.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8370,11 +8370,12 @@ log_heap_update(Relation reln, Buffer oldbuf,
83708370
xlrec.old_xmax = HeapTupleHeaderGetRawXmax(oldtup->t_data);
83718371
xlrec.old_infobits_set = compute_infobits(oldtup->t_data->t_infomask,
83728372
oldtup->t_data->t_infomask2);
8373+
xlrec.t_cid = HeapTupleHeaderGetRawCommandId(oldtup->t_data);
83738374

83748375
/* Prepare WAL data for the new page */
83758376
xlrec.new_offnum = ItemPointerGetOffsetNumber(&newtup->t_self);
83768377
xlrec.new_xmax = HeapTupleHeaderGetRawXmax(newtup->t_data);
8377-
xlrec.t_cid = HeapTupleHeaderGetRawCommandId(oldtup->t_data);
8378+
83788379
bufflags = REGBUF_STANDARD;
83798380
if (init)
83808381
bufflags |= REGBUF_WILL_INIT;

0 commit comments

Comments
 (0)
close