Skip to content

Commit abb6801

Browse files
knizhnikkelvich
authored andcommitted
Enable interrupts in Mtm2PCVoting
1 parent 681372d commit abb6801

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

multimaster.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,9 +1181,12 @@ Mtm2PCVoting(MtmCurrentTrans* x, MtmTransState* ts)
11811181
timestamp_t start = MtmGetSystemTime();
11821182
timestamp_t deadline = start + timeout;
11831183
timestamp_t now;
1184+
uint32 SaveCancelHoldoffCount = QueryCancelHoldoffCount;
11841185

11851186
Assert(ts->csn > ts->snapshot);
11861187

1188+
QueryCancelHoldoffCount = 0;
1189+
11871190
/* Wait votes from all nodes until: */
11881191
while (!MtmVotingCompleted(ts))
11891192
{
@@ -1212,6 +1215,8 @@ Mtm2PCVoting(MtmCurrentTrans* x, MtmTransState* ts)
12121215
}
12131216
}
12141217
}
1218+
QueryCancelHoldoffCount = SaveCancelHoldoffCount;
1219+
12151220
if (ts->status != TRANSACTION_STATUS_ABORTED && !ts->votingCompleted) {
12161221
if (ts->isPrepared) {
12171222
MTM_ELOG(WARNING, "Commit of distributed transaction %s is suspended because node is switched to %s mode", ts->gid, MtmNodeStatusMnem[Mtm->status]);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy