CLEANUP: peers: don't use the PR_ST* states to mark enabled/disabled
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Sep 2020 06:48:08 +0000 (08:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2020 09:27:30 +0000 (11:27 +0200)
commit1ad64acf6cfb4d804cf5da2581382995cec8b649
treeb97b8768b16ff73224b5e8e66cac2841446f1491
parentb50bf046e8340d32a2034affdc515881e0b5caf7
CLEANUP: peers: don't use the PR_ST* states to mark enabled/disabled

The enabled/disabled config options were stored into a "state" field
that is an integer but contained only PR_STNEW or PR_STSTOPPED, which
is a bit confusing, and causes a dependency with proxies. This was
renamed to "disabled" and is used as a boolean. The field was also
moved to the end of the struct to stop creating a hole and fill another
one.
include/haproxy/peers-t.h
src/cfgparse.c
src/peers.c