Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitabb6801

Browse files
knizhnikkelvich
authored andcommitted
Enable interrupts in Mtm2PCVoting
1 parent681372d commitabb6801

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_tstart=MtmGetSystemTime();
11821182
timestamp_tdeadline=start+timeout;
11831183
timestamp_tnow;
1184+
uint32SaveCancelHoldoffCount=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)

[8]ページ先頭

©2009-2025 Movatter.jp