We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent535eae1 commita0acd7bCopy full SHA for a0acd7b
multimaster.c
@@ -877,7 +877,9 @@ void MtmJoinTransaction(GlobalTransactionId* gtid, csn_t globalSnapshot)
877
}
878
if (!TransactionIdIsValid(gtid->xid)) {
879
/* In case of recovery InvalidTransactionId is passed */
880
-Assert(Mtm->status==MTM_RECOVERY);
+if (Mtm->status!=MTM_RECOVERY) {
881
+elog(PANIC,"Node %d tries to recover node %d which is in %s mode",MtmReplicationNode,MtmNodeId,MtmNodeStatusMnem[Mtm->status]);
882
+}
883
}elseif (Mtm->status==MTM_RECOVERY) {
884
/* When recovery is completed we get normal transaction ID and switch to normal mode */
885
MtmRecoveryCompleted();
@@ -2340,7 +2342,7 @@ static bool MtmProcessDDLCommand(char const* queryString)
2340
2342
rel=heap_openrv_extended(rv,RowExclusiveLock, true);
2341
2343
2344
if (rel==NULL) {
-if (!IsTransactionBlock()) {
2345
+if (!MtmIsBroadcast()) {
2346
MtmBroadcastUtilityStmt(queryString, false);
2347
return true;
2348