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

Commit8dd98e7

Browse files
afiskonkelvich
authored andcommitted
Typos fixed
1 parent7667d0f commit8dd98e7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

‎multimaster.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ typedef struct {
7979
boolisTwoPhase;/* user level 2PC */
8080
boolisReplicated;/* transaction on replica */
8181
boolisDistributed;/* transaction performed INSERT/UPDATE/DELETE and has to be replicated to other nodes */
82-
boolisPrepared;/* transaction isperpared at first stage of 2PC */
82+
boolisPrepared;/* transaction isprepared at first stage of 2PC */
8383
boolisSuspended;/* prepared transaction is suspended because coordinator node is switch to offline */
8484
boolisTransactionBlock;/* is transaction block */
8585
boolcontainsDML;/* transaction contains DML statements */
8686
boolisActive;/* transaction is active (nActiveTransaction counter is incremented) */
8787
XidStatusstatus;/* transaction status */
88-
csn_tsnapshot;/* transactionsnaphsot */
88+
csn_tsnapshot;/* transactionsnapshot */
8989
csn_tcsn;/* CSN */
9090
pgid_tgid;/* global transaction identifier (used by 2pc) */
9191
}MtmCurrentTrans;
@@ -425,7 +425,7 @@ MtmInitializeSequence(int64* start, int64* step)
425425
/*
426426
* Get snapshot of transaction proceed by WAL sender pglogical plugin.
427427
* If it is local transaction or replication node is not in participant mask, then return INVALID_CSN.
428-
* Transaction should beskept by WAL sender in the following cases:
428+
* Transaction should beskipped by WAL sender in the following cases:
429429
* 1. Transaction was replicated from some other node and it is not a recovery process.
430430
* 2. State of transaction is unknown
431431
* 3. Replication node is not participated in transaction
@@ -439,7 +439,7 @@ csn_t MtmDistributedTransactionSnapshot(TransactionId xid, int nodeId, nodemask_
439439
MtmTransState*ts= (MtmTransState*)hash_search(MtmXid2State,&xid,HASH_FIND,NULL);
440440
if (ts!=NULL) {
441441
*participantsMask=ts->participantsMask;
442-
/* If node is disables, then we in process ofrecovring this node */
442+
/* If node is disables, then weareinaprocess ofrecovery of this node */
443443
if (!ts->isLocal&&BIT_CHECK(ts->participantsMask|Mtm->disabledNodeMask,nodeId-1)) {
444444
snapshot=ts->snapshot;
445445
Assert(ts->gtid.node==MtmNodeId||MtmIsRecoverySession);
@@ -503,7 +503,7 @@ bool MtmXidInMVCCSnapshot(TransactionId xid, Snapshot snapshot)
503503
if (ts!=NULL/*&& ts->status != TRANSACTION_STATUS_IN_PROGRESS*/)
504504
{
505505
if (ts->csn>MtmTx.snapshot) {
506-
MTM_LOG4("%d: tuple with xid=%d(csn=%lld) isinvisibile in snapshot %lld",
506+
MTM_LOG4("%d: tuple with xid=%d(csn=%lld) isinvisible in snapshot %lld",
507507
MyProcPid,xid,ts->csn,MtmTx.snapshot);
508508
if (MtmGetSystemTime()-start>USECS_PER_SEC) {
509509
MTM_ELOG(WARNING,"Backend %d waits for transaction %s (%llu) status %lld usecs",MyProcPid,ts->gid, (long64)xid,MtmGetSystemTime()-start);
@@ -556,7 +556,7 @@ bool MtmXidInMVCCSnapshot(TransactionId xid, Snapshot snapshot)
556556
}
557557
else
558558
{
559-
MTM_LOG4("%d: visibility check isskept for transaction %u in snapshot %llu",MyProcPid,xid,MtmTx.snapshot);
559+
MTM_LOG4("%d: visibility check isskipped for transaction %u in snapshot %llu",MyProcPid,xid,MtmTx.snapshot);
560560
MtmUnlock();
561561
returnPgXidInMVCCSnapshot(xid,snapshot);
562562
}
@@ -570,7 +570,7 @@ bool MtmXidInMVCCSnapshot(TransactionId xid, Snapshot snapshot)
570570

571571
/*
572572
* There can be different oldest XIDs at different cluster node.
573-
* Wecollest oldest CSNs from all nodes and choose minimum from them.
573+
* Wecollect oldest CSNs from all nodes and choose minimum from them.
574574
* If no such XID can be located, then return previously observed oldest XID
575575
*/
576576
staticTransactionId

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp