@@ -922,7 +922,7 @@ MtmEndTransaction(MtmCurrentTrans* x, bool commit)
922
922
Assert (Mtm -> status != MTM_RECOVERY );
923
923
/*
924
924
* Send notification only if ABORT happens during transaction processing at replicas,
925
- * do not send notification if ABORT is receiver from master
925
+ * do not send notification if ABORT is received from master
926
926
*/
927
927
MTM_LOG2 ("%d: send ABORT notification abort transaction %d to coordinator %d" , MyProcPid , x -> gtid .xid , x -> gtid .node );
928
928
if (ts == NULL ) {
@@ -1377,7 +1377,7 @@ bool MtmRefreshClusterStatus(bool nowait)
1377
1377
MtmCheckQuorum ();
1378
1378
/* Interrupt voting for active transaction and abort them */
1379
1379
for (ts = Mtm -> transListHead ; ts != NULL ; ts = ts -> next ) {
1380
- if (!ts -> votingCompleted ) {
1380
+ if (!ts -> votingCompleted && MtmIsCoordinator ( ts ) ) {
1381
1381
if (ts -> status != TRANSACTION_STATUS_ABORTED ) {
1382
1382
MTM_LOG1 ("Rollback active transaction %d:%d" , ts -> gtid .node , ts -> gtid .xid );
1383
1383
MtmAbortTransaction (ts );
@@ -1443,7 +1443,7 @@ void MtmOnNodeDisconnect(int nodeId)
1443
1443
MtmCheckQuorum ();
1444
1444
/* Interrupt voting for active transaction and abort them */
1445
1445
for (ts = Mtm -> transListHead ; ts != NULL ; ts = ts -> next ) {
1446
- if (!ts -> votingCompleted ) {
1446
+ if (!ts -> votingCompleted && MtmIsCoordinator ( ts ) ) {
1447
1447
if (ts -> status != TRANSACTION_STATUS_ABORTED ) {
1448
1448
MTM_LOG1 ("Rollback active transaction %d:%d" , ts -> gtid .node , ts -> gtid .xid );
1449
1449
MtmAbortTransaction (ts );
0 commit comments