]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: pools: support creating a pool from a pool registration
authorWilly Tarreau <w@1wt.eu>
Tue, 5 Aug 2025 16:40:21 +0000 (18:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 6 Aug 2025 17:20:22 +0000 (19:20 +0200)
commit18505f9718e25028d64780be10dbb7288d21296a
tree07d1c4d779e494e277d54d6bfbe08dcc52e555b0
parent325d1bdcca5612808f70214f507e74b23d34063b
MINOR: pools: support creating a pool from a pool registration

We've recently introduced pool registrations to be able to enumerate
all pool creation requests with their respective parameters, but till
now they were only used for debugging ("show pools detailed"). Let's
go a step further and split create_pool() in two:
  - the first half only allocates and sets the pool registration
  - the second half creates the pool from the registration

This is what this patch does. This now opens the ability to pre-create
registrations and create pools directly from there.
include/haproxy/pool.h
src/pool.c