mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-08 04:18:58 +00:00
MINOR: server-state: Don't load server-state file for serverless proxies
Just a minor improvement. Proxies with no server are now ignored early. It may happens for listeners for instance.
This commit is contained in:
parent
3e3d3be708
commit
456f45f301
@ -816,7 +816,7 @@ void apply_server_state(void)
|
|||||||
struct eb_root local_state_tree = EB_ROOT_UNIQUE;
|
struct eb_root local_state_tree = EB_ROOT_UNIQUE;
|
||||||
|
|
||||||
/* servers are only in backends */
|
/* servers are only in backends */
|
||||||
if (!(curproxy->cap & PR_CAP_BE))
|
if (!(curproxy->cap & PR_CAP_BE) || !curproxy->srv)
|
||||||
continue; /* next proxy */
|
continue; /* next proxy */
|
||||||
|
|
||||||
/* No server-state file for this proxy */
|
/* No server-state file for this proxy */
|
||||||
|
Loading…
Reference in New Issue
Block a user