]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: pools: force the name at creation time to be a const.
authorWilly Tarreau <w@1wt.eu>
Tue, 5 Aug 2025 17:07:47 +0000 (19:07 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 6 Aug 2025 17:20:28 +0000 (19:20 +0200)
commitf51d58bd2e386ca84550bd234ff22c1292d12e09
tree8e88395ae961aa05913b7f9fb773c71c30d15da0
parentee5bc28865eee7fe68c86af4b70ef75012471fc6
MINOR: pools: force the name at creation time to be a const.

This is already the case as all names are constant so that's fine. If
it would ever change, it's not very hard to just replace it in-situ
via an strdup() and set a flag to mention that it's dynamically
allocated. We just don't need this right now.

One immediately visible effect is in "show pools detailed" where the
names are no longer truncated.
include/haproxy/pool-t.h
include/haproxy/pool.h
src/pool.c