]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: init: use initcall for all fixed size pool creations
authorWilly Tarreau <w@1wt.eu>
Mon, 26 Nov 2018 10:58:30 +0000 (11:58 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 26 Nov 2018 18:50:32 +0000 (19:50 +0100)
commit8ceae72d44e08b61190ca2daba211b0b198b0f03
tree7be7d142f51cadec95fcf70b625d5385b82e9658
parent7107c8b4943f7ee58dc4d66e5572a237b1860c7c
MEDIUM: init: use initcall for all fixed size pool creations

This commit replaces the explicit pool creation that are made in
constructors with a pool registration. Not only this simplifies the
pools declaration (it can be done on a single line after the head is
declared), but it also removes references to pools from within
constructors. The only remaining create_pool() calls are those
performed in init functions after the config is parsed, so there
is no more user of potentially uninitialized pool now.

It has been the opportunity to remove no less than 12 constructors
and 6 init functions.
26 files changed:
include/proto/connection.h
include/proto/filters.h
include/proto/proto_http.h
include/proto/queue.h
include/proto/session.h
src/cache.c
src/checks.c
src/compression.c
src/connection.c
src/dns.c
src/filters.c
src/flt_http_comp.c
src/flt_spoe.c
src/haproxy.c
src/hlua.c
src/mux_h1.c
src/mux_h2.c
src/mux_pt.c
src/pipe.c
src/proto_http.c
src/queue.c
src/session.c
src/signal.c
src/stream.c
src/task.c
src/vars.c