File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,17 @@ MtmSetClusterStatus(MtmNodeStatus status)
6060 MTM_LOG1 ("[STATE] Switching status from %s to %s status" ,
6161 MtmNodeStatusMnem [Mtm -> status ], MtmNodeStatusMnem [status ]);
6262
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+
6374 Mtm -> status = status ;
6475}
6576
@@ -85,9 +96,6 @@ MtmCheckState(void)
8596 !BIT_CHECK (Mtm -> clique , MtmNodeId - 1 ) )
8697 {
8798 BIT_SET (Mtm -> disabledNodeMask , MtmNodeId - 1 );
88- Mtm -> recoverySlot = 0 ;
89- Mtm -> pglogicalReceiverMask = 0 ;
90- Mtm -> pglogicalSenderMask = 0 ;
9199 MtmSetClusterStatus (MTM_DISABLED );
92100 return ;
93101 }
You can’t perform that action at this time.
0 commit comments