CLEANUP: server: a separate function for initializing the per_thr field
authorMiroslav Zagorac <mzagorac@haproxy.com>
Tue, 15 Jun 2021 13:33:20 +0000 (15:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Jun 2021 14:07:10 +0000 (16:07 +0200)
commit8a8f270f6a805048d1837e71d8ea8d9fa056ea1c
treecd9481f57808da4c7e0932526ad3e183cc3d08bb
parentcbc0c232bfd02716a96639de93fe2d70242802aa
CLEANUP: server: a separate function for initializing the per_thr field

To avoid repeating the same source code, allocating memory and initializing
the per_thr field from the server structure is transferred to a separate
function.
include/haproxy/server.h
src/cfgparse.c
src/server.c
src/sink.c