MEDIUM: global: remove dead code from nbproc/bind_proc removal
authorWilly Tarreau <w@1wt.eu>
Tue, 15 Jun 2021 06:36:30 +0000 (08:36 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 15 Jun 2021 14:52:42 +0000 (16:52 +0200)
commit72faef3866cd624ab670ec40026e5a4716e9d0f5
treec923fd3454b441e979ca4a493bc51d0362dfa08a
parent5301f5d72a3e9aa361f4cecc445075a1e147e884
MEDIUM: global: remove dead code from nbproc/bind_proc removal

Lots of places iterating over nbproc or comparing with nbproc could be
simplified. Further, "bind-process" and "process" parsing that was
already limited to process 1 or "all" or "odd" resulted in a bind_proc
field that was either 0 or 1 during the init phase and later always 1.

All the checks for compatibilities were removed since it's not possible
anymore to run a frontend and a backend on different processes or to
have peers and stick-tables bound on different ones. This is the largest
part of this patch.

The bind_proc field was removed from both the proxy and the receiver
structs.

Since the "process" and "bind-process" directives are still parsed,
configs making use of correct values allowing process 1 will continue
to work.
14 files changed:
include/haproxy/proxy-t.h
include/haproxy/receiver-t.h
src/action.c
src/cfgparse-listen.c
src/cfgparse.c
src/cli.c
src/flt_spoe.c
src/haproxy.c
src/listener.c
src/peers.c
src/proxy.c
src/resolvers.c
src/sample.c
src/sink.c