We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent5760d42 commitbfc9f9aCopy full SHA for bfc9f9a
contrib/mmts/multimaster.c
@@ -836,13 +836,13 @@ MtmPostPrepareTransaction(MtmCurrentTrans* x)
836
MtmUnlock();
837
MtmResetTransaction(x);
838
}else {
839
-time_ttransTimeout=Max(Mtm2PCMinTimeout, (ts->csn-ts->snapshot)*Mtm2PCPrepareRatio/100000);/* usec->msec and percents */
+time_ttransTimeout=Max(MSEC_TO_USEC(Mtm2PCMinTimeout), (ts->csn-ts->snapshot)*Mtm2PCPrepareRatio/100);/* usec->msec and percents */
840
intresult=0;
841
intnConfigChanges=Mtm->nConfigChanges;
842
843
timestamp_tstart=MtmGetSystemTime();
844
/* wait votes from all nodes */
845
-while (!ts->votingCompleted&&start+transTimeout<MtmGetSystemTime())
+while (!ts->votingCompleted&&start+transTimeout>=MtmGetSystemTime())
846
{
847
848
MtmWatchdog();