]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: lua: warn when registering action, conv, sf, cli or applet multiple times
authorThierry Fournier <thierry.fournier@ozon.io>
Sat, 28 Nov 2020 19:41:07 +0000 (20:41 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 2 Dec 2020 08:45:18 +0000 (09:45 +0100)
commitf67442efdb509d5d15f530a536b13f29fa7f48b7
treec218e3633a94ab0a0e8729d349f2f3d1927635a1
parenta51a1fd17420a96bb766afbae354e041fc9e1d9b
BUG/MINOR: lua: warn when registering action, conv, sf, cli or applet multiple times

Lua allows registering multiple sample-fetches, converters, action, cli,
applet/services with the same name. This is absolutely useless since only
the first registration will be used. This patch sends a warning if the case
is encountered.

This pach could be backported until 1.8, with the 3 associated patches:
 - MINOR: actions: Export actions lookup functions
 - MINOR: actions: add a function returning a service pointer from its name
 - MINOR: cli: add a function to look up a CLI service description
src/hlua.c