Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3fa1b9d

Browse files
committed
PGPRO-1581 fix isEnabledState calculation
1 parent 7962d0b commit 3fa1b9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

state.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ MtmCheckState(void)
129129
(MtmMajorNode || Mtm->refereeGrant),
130130
maskToString(Mtm->stoppedNodeMask, Mtm->nAllNodes));
131131

132-
#define ENABLE_IF(cond, reason) if (!(cond) && !isEnabledState) { \
132+
#define ENABLE_IF(cond, reason) if ((cond) && !isEnabledState) { \
133133
isEnabledState = true; statusReason = reason; }
134134
#define DISABLE_IF(cond, reason) if ((cond) && isEnabledState) { \
135135
isEnabledState = false; statusReason = reason; }

0 commit comments

Comments
 (0)