File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,17 @@ MtmSetClusterStatus(MtmNodeStatus status)
60
60
MTM_LOG1 ("[STATE] Switching status from %s to %s status" ,
61
61
MtmNodeStatusMnem [Mtm -> status ], MtmNodeStatusMnem [status ]);
62
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
+
63
74
Mtm -> status = status ;
64
75
}
65
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
}
You can’t perform that action at this time.
0 commit comments