Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a4582cb

Browse files
committed
Reduce amount of trace
1 parent 8072031 commit a4582cb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

contrib/mmts/multimaster.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ MtmCommitPreparedTransaction(MtmCurrentTrans* x)
10081008
int result = 0;
10091009

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

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

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

0 commit comments

Comments
 (0)