]> git.kaiwu.me - haproxy.git/commit
MINOR/CLEANUP: proxy: rename "proxy" to "proxies_list"
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 24 Nov 2017 15:54:05 +0000 (16:54 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 24 Nov 2017 16:21:27 +0000 (17:21 +0100)
commitfbc74e855622dab93dd6b90072160f977a44c4d5
treea81608f0e6cb46d07228d953287d0ddb75ba897d
parent767a84bcc07c9d42c851d09b26ce141c2a190a49
MINOR/CLEANUP: proxy: rename "proxy" to "proxies_list"

Rename the global variable "proxy" to "proxies_list".
There's been multiple proxies in haproxy for quite some time, and "proxy"
is a potential source of bugs, a number of functions have a "proxy" argument,
and some code used "proxy" when it really meant "px" or "curproxy". It worked
by pure luck, because it usually happened while parsing the config, and thus
"proxy" pointed to the currently parsed proxy, but we should probably not
rely on this.

[wt: some of these are definitely fixes that are worth backporting]
16 files changed:
include/proto/proxy.h
src/cache.c
src/cfgparse.c
src/checks.c
src/cli.c
src/dns.c
src/filters.c
src/flt_spoe.c
src/haproxy.c
src/hlua_fcn.c
src/proto_http.c
src/proto_tcp.c
src/proxy.c
src/server.c
src/stats.c
src/stick_table.c