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

Commit 1e01110

Browse files
committed
ensure nConfigChanges is incremented on every status change
1 parent 3050588 commit 1e01110

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

state.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ MtmSetClusterStatus(MtmNodeStatus status)
5959
if (Mtm->status == status)
6060
return;
6161

62+
Mtm->nConfigChanges += 1; /* this will restart backends */
63+
6264
MTM_LOG1("[STATE] Switching status from %s to %s status",
6365
MtmNodeStatusMnem[Mtm->status], MtmNodeStatusMnem[status]);
6466

0 commit comments

Comments
 (0)