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

Commit bf6892e

Browse files
committed
PGPRO-1581 fix isEnabledState calculation
1 parent ef8441a commit bf6892e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/mmts/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)