@@ -9098,7 +9098,7 @@ heap_xlog_delete(XLogReaderState *record)
9098
9098
HeapTupleHeaderSetXmax (htup , xlrec -> xmax );
9099
9099
else
9100
9100
HeapTupleHeaderSetXmin (htup , InvalidTransactionId );
9101
- HeapTupleHeaderSetCmax ( htup , xlrec -> t_cid , false) ;
9101
+ htup -> t_choice . t_heap . t_field3 . t_cid = xlrec -> t_cid ;
9102
9102
9103
9103
/* Mark the page as a candidate for pruning */
9104
9104
PageSetPrunable (page , XLogRecGetXid (record ));
@@ -9199,7 +9199,7 @@ heap_xlog_insert(XLogReaderState *record)
9199
9199
htup -> t_infomask = xlhdr .t_infomask ;
9200
9200
htup -> t_hoff = xlhdr .t_hoff ;
9201
9201
HeapTupleHeaderSetXmin (htup , XLogRecGetXid (record ));
9202
- HeapTupleHeaderSetCmin ( htup , xlhdr .t_cid ) ;
9202
+ htup -> t_choice . t_heap . t_field3 . t_cid = xlhdr .t_cid ;
9203
9203
htup -> t_ctid = target_tid ;
9204
9204
9205
9205
if (PageAddItem (page , (Item ) htup , newlen , xlrec -> offnum ,
@@ -9342,7 +9342,7 @@ heap_xlog_multi_insert(XLogReaderState *record)
9342
9342
htup -> t_infomask = xlhdr -> t_infomask ;
9343
9343
htup -> t_hoff = xlhdr -> t_hoff ;
9344
9344
HeapTupleHeaderSetXmin (htup , XLogRecGetXid (record ));
9345
- HeapTupleHeaderSetCmin ( htup , xlhdr -> t_cid ) ;
9345
+ htup -> t_choice . t_heap . t_field3 . t_cid = xlhdr -> t_cid ;
9346
9346
ItemPointerSetBlockNumber (& htup -> t_ctid , blkno );
9347
9347
ItemPointerSetOffsetNumber (& htup -> t_ctid , offnum );
9348
9348
@@ -9482,7 +9482,7 @@ heap_xlog_update(XLogReaderState *record, bool hot_update)
9482
9482
fix_infomask_from_infobits (xlrec -> old_infobits_set , & htup -> t_infomask ,
9483
9483
& htup -> t_infomask2 );
9484
9484
HeapTupleHeaderSetXmax (htup , xlrec -> old_xmax );
9485
- HeapTupleHeaderSetCmax ( htup , xlrec -> t_cid , false) ;
9485
+ htup -> t_choice . t_heap . t_field3 . t_cid = xlrec -> t_cid ;
9486
9486
/* Set forward chain link in t_ctid */
9487
9487
htup -> t_ctid = newtid ;
9488
9488
@@ -9615,7 +9615,7 @@ heap_xlog_update(XLogReaderState *record, bool hot_update)
9615
9615
htup -> t_hoff = xlhdr .t_hoff ;
9616
9616
9617
9617
HeapTupleHeaderSetXmin (htup , XLogRecGetXid (record ));
9618
- HeapTupleHeaderSetCmin ( htup , xlhdr .t_cid ) ;
9618
+ htup -> t_choice . t_heap . t_field3 . t_cid = xlhdr .t_cid ;
9619
9619
HeapTupleHeaderSetXmax (htup , xlrec -> new_xmax );
9620
9620
/* Make sure there is no forward chain link in t_ctid */
9621
9621
htup -> t_ctid = newtid ;
@@ -9756,7 +9756,7 @@ heap_xlog_lock(XLogReaderState *record)
9756
9756
offnum );
9757
9757
}
9758
9758
HeapTupleHeaderSetXmax (htup , xlrec -> locking_xid );
9759
- HeapTupleHeaderSetCmax ( htup , xlrec -> t_cid , false) ;
9759
+ htup -> t_choice . t_heap . t_field3 . t_cid = xlrec -> t_cid ;
9760
9760
PageSetLSN (page , lsn );
9761
9761
MarkBufferDirty (buffer );
9762
9762
}
0 commit comments