Content-Length: 278822 | pFad | http://github.com/postgrespro/postgres_cluster/commit/abb6801c2c2d342b3be00d2ff1334c105de086f8

37 Enable interrupts in Mtm2PCVoting · postgrespro/postgres_cluster@abb6801 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/abb6801c2c2d342b3be00d2ff1334c105de086f8

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy