We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b80f80 commit 74bdf2dCopy full SHA for 74bdf2d
src/pglogical_proto.c
@@ -36,6 +36,8 @@
36
#include "utils/typcache.h"
37
#include "utils/snapmgr.h"
38
39
+#include "storage/ipc.h"
40
+
41
#include "replication/message.h"
42
43
#include "pglogical_relid_map.h"
@@ -724,6 +726,14 @@ MtmReplicationStartupHook(struct PGLogicalStartupHookArgs* args)
724
726
hooks_data->recovery_count = MtmGetRecoveryCount();
725
727
hooks_data->counterpart_disable_count = MtmGetNodeDisableCount(MtmReplicationNodeId);
728
729
+ if (!BIT_CHECK(MtmGetConnectedNodeMask(), MtmReplicationNodeId - 1))
730
+ {
731
+ mtm_log(LOG, "exiting as dmq connection is not yet fully established");
732
733
+ proc_exit(0);
734
+ abort(); /* keep the compiler quiet */
735
+ }
736
737
foreach(param, args->in_params)
738
{
739
DefElem *elem = lfirst(param);
0 commit comments