]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: server: fix first server template not being indexed
authorWilly Tarreau <w@1wt.eu>
Tue, 12 Mar 2024 07:16:16 +0000 (08:16 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 12 Mar 2024 07:23:03 +0000 (08:23 +0100)
commit7223296092c72c2b10729a6da218897887858dba
treeb68e8924054ac85ab33a4a3f4cc42fd7c7d6df22
parent0091692d97407eb96d6cfbb888a254f904182ea9
BUG/MINOR: server: fix first server template not being indexed

3.0-dev1 introduced a small regression with commit b4db3be86e ("BUG/MINOR:
server: fix server_find_by_name() usage during parsing"). By changing the
way servers are indexed and moving it into the server template loop, the
first one is no longer indexed because the loop starts at low+1 since it
focuses on duplication. Let's index the first one explicitly now.

This should not be backported, unless the commit above is backported.
src/server.c