File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -915,15 +915,17 @@ static void MtmTransReceiver(Datum arg)
915915 } else {
916916 switch (msg -> code ) {
917917 case MSG_PREPARE :
918- if (ts -> status == TRANSACTION_STATUS_IN_PROGRESS ) {
919- ts -> status = TRANSACTION_STATUS_UNKNOWN ;
920- ts -> csn = MtmAssignCSN ();
921- MtmAdjustSubtransactions (ts );
922- MtmSendNotificationMessage (ts , MSG_PREPARED );
918+ Assert (ts -> status == TRANSACTION_STATUS_IN_PROGRESS );
919+ ts -> status = TRANSACTION_STATUS_UNKNOWN ;
920+ ts -> csn = MtmAssignCSN ();
921+ MtmAdjustSubtransactions (ts );
922+ MtmSendNotificationMessage (ts , MSG_PREPARED );
923+ #if 0
923924 } else {
924925 Assert (ts -> status == TRANSACTION_STATUS_ABORTED );
925926 MtmSendNotificationMessage (ts , MSG_ABORTED );
926927 }
928+ #endif
927929 break ;
928930 default :
929931 Assert (false);
Original file line number Diff line number Diff line change @@ -797,7 +797,7 @@ void MtmWatchdog(void)
797797 if (Mtm -> nodes [i ].lastHeartbeat != 0
798798 && now > Mtm -> nodes [i ].lastHeartbeat + MSEC_TO_USEC (MtmHeartbeatRecvTimeout ))
799799 {
800- elog (WARNING , "Heartbeat was received from node %d during %d msec" ,
800+ elog (WARNING , "Heartbeat is not received from node %d during %d msec" ,
801801 i + 1 , (int )USEC_TO_MSEC (now - Mtm -> nodes [i ].lastHeartbeat ));
802802 MtmOnNodeDisconnect (i + 1 );
803803 }
You can’t perform that action at this time.
0 commit comments