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 parentf4ff5be commitea73b2bCopy full SHA for ea73b2b
contrib/mmts/multimaster.c
@@ -874,7 +874,9 @@ void MtmJoinTransaction(GlobalTransactionId* gtid, csn_t globalSnapshot)
874
}
875
if (!TransactionIdIsValid(gtid->xid)) {
876
/* In case of recovery InvalidTransactionId is passed */
877
-Assert(Mtm->status==MTM_RECOVERY);
+if (Mtm->status!=MTM_RECOVERY) {
878
+elog(PANIC,"Node %d tries to recover node %d which is in %s mode",MtmReplicationNode,MtmNodeId,MtmNodeStatusMnem[Mtm->status]);
879
+}
880
}elseif (Mtm->status==MTM_RECOVERY) {
881
/* When recovery is completed we get normal transaction ID and switch to normal mode */
882
MtmRecoveryCompleted();
@@ -2303,7 +2305,7 @@ static bool MtmProcessDDLCommand(char const* queryString)
2303
2305
rel=heap_openrv_extended(rv,RowExclusiveLock, true);
2304
2306
2307
if (rel==NULL) {
-if (!IsTransactionBlock()) {
2308
+if (!MtmIsBroadcast()) {
2309
MtmBroadcastUtilityStmt(queryString, false);
2310
return true;
2311