Skip to content

Commit 2956510

Browse files
committed
More trace
1 parent 1642902 commit 2956510

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

contrib/mmts/arbiter.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,8 @@ static void MtmTransReceiver(Datum arg)
688688
if ((~msg->disabledNodeMask & Mtm->disabledNodeMask) != 0) {
689689
/* Coordinator's disabled mask is wider than of this node: so reject such transaction to avoid
690690
commit on smaller subset of nodes */
691+
elog(WARNING, "Coordinator of distributed transaction see less nodes than node %d: %lx instead of %lx",
692+
msg->node, Mtm->disabledNodeMask, msg->disabledNodeMask);
691693
ts->status = TRANSACTION_STATUS_ABORTED;
692694
MtmAdjustSubtransactions(ts);
693695
}

contrib/mmts/multimaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ MtmBeginTransaction(MtmCurrentTrans* x)
637637
x->isPrepared = false;
638638
x->isTransactionBlock = IsTransactionBlock();
639639
/* Application name can be cahnged usnig PGAPPNAME environment variable */
640-
if (x->isDistributed && Mtm->status != MTM_ONLINE && strcmp(application_name, MULTIMASTER_ADMIN) != 0) {
640+
if (!IsBackgroundWorker && x->isDistributed && Mtm->status != MTM_ONLINE && strcmp(application_name, MULTIMASTER_ADMIN) != 0) {
641641
/* reject all user's transactions at offline cluster */
642642
MtmUnlock();
643643
elog(ERROR, "Multimaster node is not online: current status %s", MtmNodeStatusMnem[Mtm->status]);

contrib/mmts/multimaster.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include "pglogical_output/hooks.h"
99

1010
#define MTM_TUPLE_TRACE(fmt, ...)
11-
#if 0
11+
#if 1
1212
#define MTM_INFO(fmt, ...) fprintf(stderr, fmt, ## __VA_ARGS__)
1313
#define MTM_TRACE(fmt, ...) fprintf(stderr, fmt, ## __VA_ARGS__)
1414
#else

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