]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: hlua/event_hdl: rely on proxy_uuid instead of proxy_name for lookups
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 22 Mar 2023 16:46:12 +0000 (17:46 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 21 Apr 2023 12:36:45 +0000 (14:36 +0200)
Since "MINOR: server/event_hdl: add proxy_uuid to event_hdl_cb_data_server"
we may now use proxy_uuid variable to perform proxy lookups when
handling a server event.

It is more reliable since proxy_uuid isn't subject to any size limitation

src/hlua.c

index 91c3abb8359635f34432ed603f69465d05495b0e..e6856c822309a68c572b65b07299933ad957759c 100644 (file)
@@ -9063,7 +9063,7 @@ __LJMP static int hlua_event_hdl_cb_data_push_args(struct hlua_event_sub *hlua_s
                /* attempt to provide reference server object
                 * (if it wasn't removed yet, SERVER_DEL will never succeed here)
                 */
-               px = proxy_find_by_name(e_server->safe.proxy_name, PR_CAP_BE, 0);
+               px = proxy_find_by_id(e_server->safe.proxy_uuid, PR_CAP_BE, 0);
                BUG_ON(!px);
                server = findserver_unique_id(px, e_server->safe.puid, e_server->safe.rid);
                if (server) {