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 parent5ac4fdd commitd933855Copy full SHA for d933855
state.c
@@ -60,6 +60,17 @@ MtmSetClusterStatus(MtmNodeStatus status)
60
MTM_LOG1("[STATE] Switching status from %s to %s status",
61
MtmNodeStatusMnem[Mtm->status],MtmNodeStatusMnem[status]);
62
63
+/*
64
+ * Do some actions on specific status transitions.
65
+ * This will be executed only once because of preceeding if stmt.
66
+ */
67
+if (status==MTM_DISABLED)
68
+{
69
+Mtm->recoverySlot=0;
70
+Mtm->pglogicalReceiverMask=0;
71
+Mtm->pglogicalSenderMask=0;
72
+}
73
+
74
Mtm->status=status;
75
}
76
@@ -85,9 +96,6 @@ MtmCheckState(void)
85
96
!BIT_CHECK(Mtm->clique,MtmNodeId-1) )
86
97
{
87
98
BIT_SET(Mtm->disabledNodeMask,MtmNodeId-1);
88
-Mtm->recoverySlot=0;
89
-Mtm->pglogicalReceiverMask=0;
90
-Mtm->pglogicalSenderMask=0;
91
99
MtmSetClusterStatus(MTM_DISABLED);
92
100
return;
93
101