mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-05 21:11:53 +00:00
MINOR: server: diag for 0 weight server
Output a diagnostic report if a server has been configured with a null weight.
This commit is contained in:
parent
c4d47d609a
commit
da0e7f61e0
@ -2702,6 +2702,10 @@ int parse_server(const char *file, int linenum, char **args,
|
||||
if (parse_flags & SRV_PARSE_TEMPLATE)
|
||||
_srv_parse_tmpl_init(newsrv, curproxy);
|
||||
|
||||
HA_DIAG_WARNING_COND(!newsrv->uweight,
|
||||
"parsing [%s:%d] : 'server %s' : configured with weight of 0 will never be selected by load balancing algorithms\n",
|
||||
file, linenum, newsrv->id);
|
||||
|
||||
return 0;
|
||||
|
||||
out:
|
||||
|
Loading…
Reference in New Issue
Block a user