Skip to content

Commit dcc004c

Browse files
knizhnikkelvich
authored andcommitted
Reduce amount of trace
1 parent 8920f0b commit dcc004c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

multimaster.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ MtmCommitPreparedTransaction(MtmCurrentTrans* x)
10071007
int result = 0;
10081008

10091009
Assert(tm->state != NULL);
1010-
MTM_LOG1("Commit prepared transaction %d with gid='%s'", x->xid, x->gid);
1010+
MTM_LOG3("Commit prepared transaction %d with gid='%s'", x->xid, x->gid);
10111011
ts = tm->state;
10121012

10131013
Assert(MtmIsCoordinator(ts));
@@ -1084,7 +1084,7 @@ MtmAbortPreparedTransaction(MtmCurrentTrans* x)
10841084
static void
10851085
MtmEndTransaction(MtmCurrentTrans* x, bool commit)
10861086
{
1087-
MTM_LOG1("%d: End transaction %d, prepared=%d, replicated=%d, distributed=%d, 2pc=%d, gid=%s -> %s",
1087+
MTM_LOG3("%d: End transaction %d, prepared=%d, replicated=%d, distributed=%d, 2pc=%d, gid=%s -> %s",
10881088
MyProcPid, x->xid, x->isPrepared, x->isReplicated, x->isDistributed, x->isTwoPhase, x->gid, commit ? "commit" : "abort");
10891089
if (x->status != TRANSACTION_STATUS_ABORTED && x->isDistributed && (x->isPrepared || x->isReplicated) && !x->isTwoPhase) {
10901090
MtmTransState* ts = NULL;
@@ -1225,7 +1225,7 @@ void MtmBroadcastPollMessage(MtmTransState* ts)
12251225
if (i+1 != MtmNodeId && BIT_CHECK(ts->participantsMask & ~Mtm->disabledNodeMask, i))
12261226
{
12271227
msg.node = i+1;
1228-
MTM_LOG1("Send request for transaction %s to node %d", msg.gid, msg.node);
1228+
MTM_LOG3("Send request for transaction %s to node %d", msg.gid, msg.node);
12291229
MtmSendMessage(&msg);
12301230
}
12311231
}
@@ -3837,7 +3837,7 @@ static bool MtmProcessDDLCommand(char const* queryString, bool transactional)
38373837
queryWithContext = (char *) queryString;
38383838
}
38393839

3840-
MTM_LOG1("Sending utility: %s", queryWithContext);
3840+
MTM_LOG3("Sending utility: %s", queryWithContext);
38413841
if (transactional)
38423842
/* DDL */
38433843
LogLogicalMessage("D", queryWithContext, strlen(queryWithContext) + 1, true);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy