]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: server: rename server_find_by_name() to server_find()
authorWilly Tarreau <w@1wt.eu>
Thu, 10 Jul 2025 08:59:06 +0000 (10:59 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 15 Jul 2025 08:30:28 +0000 (10:30 +0200)
commit6ad9285796b9db41934878a369c4644c29a94f2b
tree89f1631404f7ba0650af18a7fcc55f0a4b77f23e
parent5e78ab33cd8ac0b8cf479bc5fe762555410451a1
CLEANUP: server: rename server_find_by_name() to server_find()

This function doesn't just look at the name but also the ID when the
argument starts with a '#'. So the name is not correct and explains
why this function is not always used when the name only is needed,
and why the list-based findserver() is used instead. So let's just
call the function "server_find()", and rename its generation-id based
cousin "server_find_unique()".
include/haproxy/server.h
src/backend.c
src/hlua_fcn.c
src/proto_rhttp.c
src/server.c
src/stream.c
src/tcp_act.c