]> git.kaiwu.me - haproxy.git/commit
REORG: cfgparse: move server keyword parsing to server.c
authorWilly Tarreau <w@1wt.eu>
Mon, 31 Mar 2014 08:39:59 +0000 (10:39 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 31 Mar 2014 08:42:03 +0000 (10:42 +0200)
commit272adea423458c3070b73c1354dbb851c907bfdd
tree053e5e7ce2da7602b4de1c808f3b2bafd7860e9f
parent702d44f2ff98def1c8ebcc5c3de6293919a390d0
REORG: cfgparse: move server keyword parsing to server.c

The cfgparse.c file becomes huge, and a large part of it comes from the
server keyword parser. Since the configuration is a bit more modular now,
move this parser to server.c.

This patch also moves the check of the "server" keyword earlier in the
supported keywords list, resulting in a slightly faster config parsing
for configs with large numbers of servers (about 10%).

No functional change was made, only the code was moved.
include/common/cfgparse.h
include/proto/server.h
src/cfgparse.c
src/server.c