projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e3d3be
)
MINOR: server-state: Don't load server-state file for serverless proxies
author
Christopher Faulet
<cfaulet@haproxy.com>
Tue, 16 Feb 2021 13:36:06 +0000
(14:36 +0100)
committer
Christopher Faulet
<cfaulet@haproxy.com>
Thu, 25 Feb 2021 09:02:39 +0000
(10:02 +0100)
Just a minor improvement. Proxies with no server are now ignored early. It
may happens for listeners for instance.
src/server_state.c
patch
|
blob
|
history
diff --git
a/src/server_state.c
b/src/server_state.c
index
e3d2854
..
302ffb3
100644
(file)
--- a/
src/server_state.c
+++ b/
src/server_state.c
@@
-816,7
+816,7
@@
void apply_server_state(void)
struct eb_root local_state_tree = EB_ROOT_UNIQUE;
/* servers are only in backends */
- if (!(curproxy->cap & PR_CAP_BE))
+ if (!(curproxy->cap & PR_CAP_BE) || !curproxy->srv)
continue; /* next proxy */
/* No server-state file for this proxy */