]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: hlua: rename "tune.lua.preserve-smp-bool" to "tune.lua.bool-sample-conversion"
authorAurelien DARRAGON <adarragon@haproxy.com>
Fri, 20 Dec 2024 16:25:29 +0000 (17:25 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Fri, 20 Dec 2024 16:34:05 +0000 (17:34 +0100)
commit29b6d8af16884bb8f0b5cd83a3752980df8548d0
treed3cdcb09c7d00cace9cf5b025118f637f0fb4acf
parent8633446337cd322f010ce7b3ca9c257d1ce7848c
MINOR: hlua: rename "tune.lua.preserve-smp-bool" to "tune.lua.bool-sample-conversion"

A better name was found for the option implemented in ec74438
("MINOR: hlua: add option to preserve bool type from smp to lua")

Indeed, "tune.lua.preserve-smp-bool {on | off}" wasn't explicit enough
nor did it encourage the adoption of the new "fixed" behavior (vs
historical behavior which is now considered as a bug).

Thus it becomes "tune.lua.bool-sample-conversion { normal | pre-3.1-bug }"
which actively encourage users to switch the new behavior after having
patched in-use Lua script if needed. From a technical point of view,
the logic remains the same, as the option currently defaults to
"pre-3.1-bug" to prevent script breakage, and a warning is emitted if
the option isn't set explicily and Lua is used.

Documentation and regtests were updated.

Must be backported in 3.1 with ec74438 and f2838f5 ("REGTESTS: fix
lua-based regtests using tune.lua.smp-preserve-bool")
14 files changed:
doc/configuration.txt
reg-tests/compression/lua_validation.vtc
reg-tests/lua/bad_http_clt_req_duration.vtc
reg-tests/lua/close_wait_lf.vtc
reg-tests/lua/h_txn_get_priv.vtc
reg-tests/lua/httpclient_action.vtc
reg-tests/lua/lua_httpclient.vtc
reg-tests/lua/lua_socket.vtc
reg-tests/lua/set_var.vtc
reg-tests/lua/txn_get_priv-thread.vtc
reg-tests/lua/txn_get_priv.vtc
reg-tests/lua/wrong_types_usage.vtc
reg-tests/mailers/healthcheckmail.vtc
src/hlua.c