Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1544b6e

Browse files
afiskonkelvich
authored andcommitted
Typos fixed
1 parent845ea0e commit1544b6e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎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 changedusnig PGAPPNAME environment variable */
817+
/* Application name can be changedusing 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,"Globaltransaciton ID '%s' is not found",x->gid);
1220+
MTM_ELOG(WARNING,"Globaltransaction 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)

[8]ページ先頭

©2009-2025 Movatter.jp