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 ef8441a commit bf6892eCopy full SHA for bf6892e
contrib/mmts/state.c
@@ -129,7 +129,7 @@ MtmCheckState(void)
129
(MtmMajorNode || Mtm->refereeGrant),
130
maskToString(Mtm->stoppedNodeMask, Mtm->nAllNodes));
131
132
-#define ENABLE_IF(cond, reason) if (!(cond) && !isEnabledState) { \
+#define ENABLE_IF(cond, reason) if ((cond) && !isEnabledState) { \
133
isEnabledState = true; statusReason = reason; }
134
#define DISABLE_IF(cond, reason) if ((cond) && isEnabledState) { \
135
isEnabledState = false; statusReason = reason; }
0 commit comments