mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-27 04:43:37 -04: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
1 changed files with 0 additions and 1 deletions
|
|
@ -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")) {
|
||||
newsrv->admin |= SRV_ADMF_CMAINT;
|
||||
newsrv->admin |= SRV_ADMF_FMAINT;
|
||||
newsrv->state = SRV_ST_STOPPED;
|
||||
newsrv->check.state |= CHK_ST_PAUSED;
|
||||
newsrv->check.health = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue