]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: server: Store parsed params of a server-state line in the tree
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 15 Feb 2021 17:27:35 +0000 (18:27 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 25 Feb 2021 09:02:39 +0000 (10:02 +0100)
commitecfb9b9109ff803740153489f8571eec81dc8783
tree36c7e63c8a649c997e217ae6ed07cc881b1b5caa
parent8a14b73ecf992e535301972e0b7d9e7f14d1eb4c
MEDIUM: server: Store parsed params of a server-state line in the tree

Parsed parameters are now stored in the tree of server-state lines. This
way, a line from the global server-state file is only parsed once. Before,
it was parsed a first time to store it in the tree and one more time to load
the server state. To do so, the server-state line object must be allocated
before parsing a line. This means its size must no longer depend on the
length of first parsed parameters (backend and server names). Thus the node
type was changed to use a hashed key instead of a string.
include/haproxy/server-t.h
src/server.c