@@ -1775,7 +1775,7 @@ static void MtmLoadPreparedTransactions(void)
1775
1775
MtmActivateTransaction (ts );
1776
1776
ts -> status = strcmp (pxacts [i ].state_3pc , MULTIMASTER_PRECOMMITTED ) == 0 ? TRANSACTION_STATUS_UNKNOWN : TRANSACTION_STATUS_IN_PROGRESS ;
1777
1777
ts -> isLocal = true;
1778
- ts -> isPrepared = true ;
1778
+ ts -> isPrepared = strcmp ( pxacts [ i ]. state_3pc , MULTIMASTER_PRECOMMITTED ) == 0 ;
1779
1779
ts -> isPinned = false;
1780
1780
ts -> snapshot = INVALID_CSN ;
1781
1781
ts -> isTwoPhase = false;
@@ -2074,15 +2074,15 @@ MtmPollStatusOfPreparedTransactions(bool majorMode)
2074
2074
{
2075
2075
MtmTransState * ts = MtmGetActiveTransaction (cur );
2076
2076
2077
- // MTM_LOG1("X_MtmPollStatusOfPreparedTransactions %s, major=%d, status=%d, isPrepared=%d, valid=%d, completed=%d", ts->gid, majorMode, ts->status, ts->isPrepared, TransactionIdIsValid(ts->gtid.xid), ts->votingCompleted);
2077
+ MTM_LOG1 ("X_MtmPollStatusOfPreparedTransactions %s, major=%d, status=%d, isPrepared=%d, valid=%d, completed=%d" , ts -> gid , majorMode , ts -> status , ts -> isPrepared , TransactionIdIsValid (ts -> gtid .xid ), ts -> votingCompleted );
2078
2078
2079
2079
if (TransactionIdIsValid (ts -> gtid .xid )
2080
2080
&& ts -> votingCompleted /* If voting is not yet completed, then there is some backend coordinating this transaction */
2081
2081
&& (ts -> status == TRANSACTION_STATUS_UNKNOWN || ts -> status == TRANSACTION_STATUS_IN_PROGRESS ))
2082
2082
{
2083
2083
Assert (ts -> gid [0 ]);
2084
2084
2085
- // MTM_LOG1("MtmPollStatusOfPreparedTransactions %s, major=%d, status=%d, isPrepared=%d", ts->gid, majorMode, ts->status, ts->isPrepared);
2085
+ MTM_LOG1 ("MtmPollStatusOfPreparedTransactions %s, major=%d, status=%d, isPrepared=%d" , ts -> gid , majorMode , ts -> status , ts -> isPrepared );
2086
2086
2087
2087
if (majorMode )
2088
2088
{
0 commit comments