@@ -814,7 +814,7 @@ MtmBeginTransaction(MtmCurrentTrans* x)
814814x -> isSuspended = false;
815815x -> isTwoPhase = false;
816816x -> isTransactionBlock = IsTransactionBlock ();
817- /* Application name can be changedusnig PGAPPNAME environment variable */
817+ /* Application name can be changedusing PGAPPNAME environment variable */
818818if (x -> isDistributed && Mtm -> status != MTM_ONLINE && strcmp (application_name ,MULTIMASTER_ADMIN )!= 0 ) {
819819/* Reject all user's transactions at offline cluster.
820820 * Allow execution of transaction by bg-workers to make it possible to perform recovery.
@@ -1022,8 +1022,6 @@ void MtmPrecommitTransaction(char const* gid)
10221022MtmUnlock ();
10231023Assert (replorigin_session_origin != InvalidRepOriginId );
10241024if (!IsTransactionState ()) {
1025- MtmResetTransaction ();
1026- StartTransactionCommand ();
10271025SetPreparedTransactionState (ts -> gid ,MULTIMASTER_PRECOMMITTED );
10281026CommitTransactionCommand ();
10291027}else {
@@ -1219,7 +1217,7 @@ MtmPreCommitPreparedTransaction(MtmCurrentTrans* x)
12191217MtmLock (LW_EXCLUSIVE );
12201218tm = (MtmTransMap * )hash_search (MtmGid2State ,x -> gid ,HASH_FIND ,NULL );
12211219if (tm == NULL ) {
1222- MTM_ELOG (WARNING ,"Globaltransaciton ID '%s' is not found" ,x -> gid );
1220+ MTM_ELOG (WARNING ,"Globaltransaction ID '%s' is not found" ,x -> gid );
12231221}else {
12241222Assert (tm -> state != NULL );
12251223MTM_LOG3 ("Commit prepared transaction %d with gid='%s'" ,x -> xid ,x -> gid );