@@ -814,7 +814,7 @@ MtmBeginTransaction(MtmCurrentTrans* x)
814
814
x -> isSuspended = false;
815
815
x -> isTwoPhase = false;
816
816
x -> isTransactionBlock = IsTransactionBlock ();
817
- /* Application name can be changedusnig PGAPPNAME environment variable */
817
+ /* Application name can be changedusing PGAPPNAME environment variable */
818
818
if (x -> isDistributed && Mtm -> status != MTM_ONLINE && strcmp (application_name ,MULTIMASTER_ADMIN )!= 0 ) {
819
819
/* Reject all user's transactions at offline cluster.
820
820
* Allow execution of transaction by bg-workers to make it possible to perform recovery.
@@ -1022,8 +1022,6 @@ void MtmPrecommitTransaction(char const* gid)
1022
1022
MtmUnlock ();
1023
1023
Assert (replorigin_session_origin != InvalidRepOriginId );
1024
1024
if (!IsTransactionState ()) {
1025
- MtmResetTransaction ();
1026
- StartTransactionCommand ();
1027
1025
SetPreparedTransactionState (ts -> gid ,MULTIMASTER_PRECOMMITTED );
1028
1026
CommitTransactionCommand ();
1029
1027
}else {
@@ -1219,7 +1217,7 @@ MtmPreCommitPreparedTransaction(MtmCurrentTrans* x)
1219
1217
MtmLock (LW_EXCLUSIVE );
1220
1218
tm = (MtmTransMap * )hash_search (MtmGid2State ,x -> gid ,HASH_FIND ,NULL );
1221
1219
if (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 );
1223
1221
}else {
1224
1222
Assert (tm -> state != NULL );
1225
1223
MTM_LOG3 ("Commit prepared transaction %d with gid='%s'" ,x -> xid ,x -> gid );