Skip to content

Commit ef0cc64

Browse files
committed
Typos fixed
1 parent 144c54f commit ef0cc64

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

contrib/mmts/multimaster.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ MtmBeginTransaction(MtmCurrentTrans* x)
814814
x->isSuspended = false;
815815
x->isTwoPhase = false;
816816
x->isTransactionBlock = IsTransactionBlock();
817-
/* Application name can be changed usnig PGAPPNAME environment variable */
817+
/* Application name can be changed using PGAPPNAME environment variable */
818818
if (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)
10221022
MtmUnlock();
10231023
Assert(replorigin_session_origin != InvalidRepOriginId);
10241024
if (!IsTransactionState()) {
1025-
MtmResetTransaction();
1026-
StartTransactionCommand();
10271025
SetPreparedTransactionState(ts->gid, MULTIMASTER_PRECOMMITTED);
10281026
CommitTransactionCommand();
10291027
} else {
@@ -1219,7 +1217,7 @@ MtmPreCommitPreparedTransaction(MtmCurrentTrans* x)
12191217
MtmLock(LW_EXCLUSIVE);
12201218
tm = (MtmTransMap*)hash_search(MtmGid2State, x->gid, HASH_FIND, NULL);
12211219
if (tm == NULL) {
1222-
MTM_ELOG(WARNING, "Global transaciton ID '%s' is not found", x->gid);
1220+
MTM_ELOG(WARNING, "Global transaction ID '%s' is not found", x->gid);
12231221
} else {
12241222
Assert(tm->state != NULL);
12251223
MTM_LOG3("Commit prepared transaction %d with gid='%s'", x->xid, x->gid);

0 commit comments

Comments
 (0)