Skip to content

Commit 7450f9b

Browse files
committed
turn off unnecessary logs
1 parent f2c0241 commit 7450f9b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

multimaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3737,7 +3737,7 @@ MtmExecutorFinish(QueryDesc *queryDesc)
37373737
continue;
37383738
}
37393739
}
3740-
MTM_LOG1("MtmTx.containsDML = true // WAL");
3740+
MTM_LOG3("MtmTx.containsDML = true // WAL");
37413741
MtmTx.containsDML = true;
37423742
break;
37433743
}

pglogical_apply.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ process_remote_commit(StringInfo in)
620620
Assert(!TransactionIdIsValid(MtmGetCurrentTransactionId()));
621621
csn = pq_getmsgint64(in);
622622
gid = pq_getmsgstring(in);
623-
MTM_LOG1("PGLOGICAL_COMMIT_PREPARED commit: csn=%ld, gid=%s, lsn=%ld", csn, gid, end_lsn);
623+
MTM_LOG2("PGLOGICAL_COMMIT_PREPARED commit: csn=%ld, gid=%s, lsn=%ld", csn, gid, end_lsn);
624624
StartTransactionCommand();
625625
MtmBeginSession();
626626
MtmSetCurrentTransactionCSN(csn);
@@ -633,9 +633,9 @@ process_remote_commit(StringInfo in)
633633
{
634634
Assert(!TransactionIdIsValid(MtmGetCurrentTransactionId()));
635635
gid = pq_getmsgstring(in);
636-
MTM_LOG1("PGLOGICAL_ABORT_PREPARED commit: gid=%s", gid);
636+
MTM_LOG2("PGLOGICAL_ABORT_PREPARED commit: gid=%s", gid);
637637
if (MtmExchangeGlobalTransactionStatus(gid, TRANSACTION_STATUS_ABORTED) == TRANSACTION_STATUS_UNKNOWN) {
638-
MTM_LOG1("PGLOGICAL_ABORT_PREPARED commit: gid=%s #2", gid);
638+
MTM_LOG2("PGLOGICAL_ABORT_PREPARED commit: gid=%s #2", gid);
639639
StartTransactionCommand();
640640
MtmBeginSession();
641641
MtmSetCurrentTransactionGID(gid);
@@ -978,7 +978,7 @@ void MtmExecutor(int id, void* work, size_t size)
978978
{
979979
while (true) {
980980
char action = pq_getmsgbyte(&s);
981-
MTM_LOG1("%d: REMOTE process action %c", MyProcPid, action);
981+
MTM_LOG3("%d: REMOTE process action %c", MyProcPid, action);
982982
#if 0
983983
if (Mtm->status == MTM_RECOVERY) {
984984
MTM_LOG1("Replay action %c[%x]", action, s.data[s.cursor]);

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