Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8bf872e

Browse files
committed
set votingCompleted for aborted tx
1 parent 5c6fae5 commit 8bf872e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

multimaster.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,6 +1261,17 @@ MtmVotingCompleted(MtmTransState* ts)
12611261
MTM_ELOG(WARNING, "Abort transaction %s {%d} (%llu) because cluster configuration is changed from %d to %d (old mask %llx, new mask %llx) since transaction start",
12621262
ts->gid, ts->status, (long64)ts->xid, ts->nConfigChanges, Mtm->nConfigChanges, ts->participantsMask, liveNodesMask);
12631263
MtmAbortTransaction(ts);
1264+
// also set vot compl?
1265+
return true;
1266+
}
1267+
else if (ts->status == TRANSACTION_STATUS_ABORTED)
1268+
{
1269+
/*
1270+
* We can became offline just after abort arrival. Then this tx
1271+
* will remain forever as PollState will skip it. So just proceed
1272+
* and abort this tx in ordinary way.
1273+
*/
1274+
ts->votingCompleted = true;
12641275
return true;
12651276
}
12661277
else

0 commit comments

Comments
 (0)