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