]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: vars: Move UPDATEONLY flag test to vars_set_ifexist
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Thu, 16 Dec 2021 16:14:34 +0000 (17:14 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 16 Dec 2021 16:31:27 +0000 (17:31 +0100)
commit7055301934e3951270eac999b8f9168a81f81ed8
tree9eefc35925f93f79b55df657a7a5e3b7139d3433
parentd1a2e2b0d1da0dff726738343fbaed044fb93470
MINOR: vars: Move UPDATEONLY flag test to vars_set_ifexist

The vars_set_by_name_ifexist function was created to avoid creating too
many variables from a LUA module. This was made thanks to the
VF_UPDATEONLY flags which prevented variable creation in the var_set
function. Since commit 3a4bedccc ("MEDIUM: vars: replace the global name
index with a hash") this limitation was restricted to 'proc' scope
variables only.
This patch simply moves the scope test to the vars_set_by_name_ifexist
function instead of the var_set function.
src/vars.c