File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -836,13 +836,13 @@ MtmPostPrepareTransaction(MtmCurrentTrans* x)
836
836
MtmUnlock ();
837
837
MtmResetTransaction (x );
838
838
} else {
839
- time_t transTimeout = Max (Mtm2PCMinTimeout , (ts -> csn - ts -> snapshot )* Mtm2PCPrepareRatio /100000 ); /* usec->msec and percents */
839
+ time_t transTimeout = Max (MSEC_TO_USEC ( Mtm2PCMinTimeout ) , (ts -> csn - ts -> snapshot )* Mtm2PCPrepareRatio /100 ); /* usec->msec and percents */
840
840
int result = 0 ;
841
841
int nConfigChanges = Mtm -> nConfigChanges ;
842
842
843
843
timestamp_t start = MtmGetSystemTime ();
844
844
/* wait votes from all nodes */
845
- while (!ts -> votingCompleted && start + transTimeout < MtmGetSystemTime ())
845
+ while (!ts -> votingCompleted && start + transTimeout >= MtmGetSystemTime ())
846
846
{
847
847
MtmUnlock ();
848
848
MtmWatchdog ();
You can’t perform that action at this time.
0 commit comments