We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0adf743 commit aac8d16Copy full SHA for aac8d16
multimaster.c
@@ -835,13 +835,13 @@ MtmPostPrepareTransaction(MtmCurrentTrans* x)
835
MtmUnlock();
836
MtmResetTransaction(x);
837
} else {
838
- time_t transTimeout = Max(Mtm2PCMinTimeout, (ts->csn - ts->snapshot)*Mtm2PCPrepareRatio/100000); /* usec->msec and percents */
+ time_t transTimeout = Max(MSEC_TO_USEC(Mtm2PCMinTimeout), (ts->csn - ts->snapshot)*Mtm2PCPrepareRatio/100); /* usec->msec and percents */
839
int result = 0;
840
int nConfigChanges = Mtm->nConfigChanges;
841
842
timestamp_t start = MtmGetSystemTime();
843
/* wait votes from all nodes */
844
- while (!ts->votingCompleted && start + transTimeout < MtmGetSystemTime())
+ while (!ts->votingCompleted && start + transTimeout >= MtmGetSystemTime())
845
{
846
847
MtmWatchdog();
0 commit comments