BUG/MEDIUM: checks: a down server going to maint remains definitely stucked on down state.

The new admin state was not correctly commited in this case.
Checks were fully disabled but the server was not marked in MAINT state.
It results with a server definitely stucked on the DOWN state.

This patch should be backported on haproxy 1.8
This commit is contained in:
Emeric Brun 2017-12-06 16:47:17 +01:00 committed by Willy Tarreau
parent ece0c334bd
commit 8f29829e24

View File

@ -4623,6 +4623,9 @@ void srv_update_status(struct server *s)
free_trash_chunk(tmptrash);
tmptrash = NULL;
}
/* commit new admin status */
s->cur_admin = s->next_admin;
}
else { /* server was still running */
check->health = 0; /* failure */