@@ -803,7 +803,7 @@ MtmPostPrepareTransaction(MtmCurrentTrans* x)
803803}
804804if (!ts -> votingCompleted ) {
805805ts -> status = TRANSACTION_STATUS_ABORTED ;
806- elog (WARNING ,"Transaction is aborted because of %d msec timeout expiration" , (int )timeout );
806+ elog (WARNING ,"Transaction is aborted because of %d msec timeout expiration, prepare time %d msec " , (int )timeout , ( int )(( ts -> csn - x -> snapshot )/ 1000 ) );
807807}
808808x -> status = ts -> status ;
809809MTM_LOG3 ("%d: Result of vote: %d" ,MyProcPid ,ts -> status );
@@ -1604,7 +1604,7 @@ _PG_init(void)
16041604return ;
16051605
16061606DefineCustomIntVariable (
1607- "multimaster.2pc_min_timeout " ,
1607+ "multimaster.twopc_min_timeout " ,
16081608"Minamal amount of time (milliseconds) to wait 2PC confirmation from all nodes" ,
16091609"Timeout for 2PC is calculated as MAX(prepare_time*2pc_prepare_ratio/100,2pc_min_timeout)" ,
16101610& Mtm2PCMinTimeout ,
@@ -1619,7 +1619,7 @@ _PG_init(void)
16191619);
16201620
16211621DefineCustomIntVariable (
1622- "multimaster.2pc_prepare_ratio " ,
1622+ "multimaster.twopc_prepare_ratio " ,
16231623"Percent of prepare time for maximal time of second phase of two-pahse commit" ,
16241624"Timeout for 2PC is calculated as MAX(prepare_time*2pc_prepare_ratio/100,2pc_min_timeout)" ,
16251625& Mtm2PCPrepareRatio ,