mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-09 00:27:08 +02:00
MINOR: server SRV_ADMF_CMAINT flag doesn't imply SRV_ADMF_FMAINT
The newly created server flag SRV_ADMF_CMAINT means that the server is in 'disabled' mode because of configuration statement 'disabled'. The flag SRV_ADMF_FMAINT should not be set anymore in such case and is reserved only when the server is Forced in maintenance mode from the stats socket.
This commit is contained in:
parent
8e441fb4ed
commit
93c20623db
@ -1295,7 +1295,6 @@ int parse_server(const char *file, int linenum, char **args, struct proxy *curpr
|
|||||||
}
|
}
|
||||||
else if (!defsrv && !strcmp(args[cur_arg], "disabled")) {
|
else if (!defsrv && !strcmp(args[cur_arg], "disabled")) {
|
||||||
newsrv->admin |= SRV_ADMF_CMAINT;
|
newsrv->admin |= SRV_ADMF_CMAINT;
|
||||||
newsrv->admin |= SRV_ADMF_FMAINT;
|
|
||||||
newsrv->state = SRV_ST_STOPPED;
|
newsrv->state = SRV_ST_STOPPED;
|
||||||
newsrv->check.state |= CHK_ST_PAUSED;
|
newsrv->check.state |= CHK_ST_PAUSED;
|
||||||
newsrv->check.health = 0;
|
newsrv->check.health = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user