File tree 1 file changed +10
-6
lines changed
1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -129,9 +129,9 @@ MtmCheckState(void)
129
129
(MtmMajorNode || Mtm -> refereeGrant ),
130
130
maskToString (Mtm -> stoppedNodeMask , Mtm -> nAllNodes ));
131
131
132
- #define ENABLE_IF (cond , reason ) if (!(condition ) && !isEnabledState) { \
132
+ #define ENABLE_IF (cond , reason ) if (!(cond ) && !isEnabledState) { \
133
133
isEnabledState = true; statusReason = reason; }
134
- #define DISABLE_IF (cond , reason ) if ((condition ) && isEnabledState) { \
134
+ #define DISABLE_IF (cond , reason ) if ((cond ) && isEnabledState) { \
135
135
isEnabledState = false; statusReason = reason; }
136
136
137
137
isEnabledState = false;
@@ -161,11 +161,15 @@ MtmCheckState(void)
161
161
switch (Mtm -> status )
162
162
{
163
163
case MTM_DISABLED :
164
- MtmSetClusterStatus (MTM_RECOVERY , statusReason );
164
+ if (isEnabledState )
165
+ {
166
+ MtmSetClusterStatus (MTM_RECOVERY , statusReason );
165
167
166
- if (old_status != Mtm -> status )
167
- MtmCheckState ();
168
- return ;
168
+ if (old_status != Mtm -> status )
169
+ MtmCheckState ();
170
+ return ;
171
+ }
172
+ break ;
169
173
170
174
case MTM_RECOVERY :
171
175
if (!BIT_CHECK (Mtm -> disabledNodeMask , MtmNodeId - 1 ))
You can’t perform that action at this time.
0 commit comments