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 5760d42 commit bfc9f9aCopy full SHA for bfc9f9a
contrib/mmts/multimaster.c
@@ -836,13 +836,13 @@ MtmPostPrepareTransaction(MtmCurrentTrans* x)
836
MtmUnlock();
837
MtmResetTransaction(x);
838
} else {
839
- 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 */
840
int result = 0;
841
int nConfigChanges = Mtm->nConfigChanges;
842
843
timestamp_t start = MtmGetSystemTime();
844
/* wait votes from all nodes */
845
- while (!ts->votingCompleted && start + transTimeout < MtmGetSystemTime())
+ while (!ts->votingCompleted && start + transTimeout >= MtmGetSystemTime())
846
{
847
848
MtmWatchdog();
0 commit comments