File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -739,7 +739,7 @@ process_remote_commit(StringInfo in)
739739 Assert (!TransactionIdIsValid (MtmGetCurrentTransactionId ()));
740740 csn = pq_getmsgint64 (in );
741741 /*
742- * Since our recovery method allows undershoot of csn , we can receive
742+ * Since our recovery method allows undershoot of lsn , we can receive
743743 * some already committed transactions. And in case of donor node reboot
744744 * xid<->csn mapping for them will be lost. However we must filter such
745745 * transactions in walreceiver before this code. --sk
@@ -750,7 +750,10 @@ process_remote_commit(StringInfo in)
750750 MtmResetTransaction ();
751751 StartTransactionCommand ();
752752 MtmBeginSession (origin_node );
753- MtmSetCurrentTransactionCSN (csn );
753+ if (csn == INVALID_CSN && Mtm -> status == MTM_RECOVERY )
754+ MtmSetCurrentTransactionCSN (MtmAssignCSN ());
755+ else
756+ MtmSetCurrentTransactionCSN (csn );
754757 MtmSetCurrentTransactionGID (gid );
755758 FinishPreparedTransaction (gid , true);
756759 MTM_LOG2 ("Distributed transaction %s is committed" , gid );
You can’t perform that action at this time.
0 commit comments