]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: trace: postresolve sink names
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 8 Oct 2024 17:02:20 +0000 (19:02 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Thu, 10 Oct 2024 14:55:15 +0000 (16:55 +0200)
commited266589b6d6dd4e5215e3f0ed12c263e6f9f436
treefddc50008f1412d85a1fdfec60cb05590dbb9348
parent1bdf6e884a5a205b3d98d217c3d1cc0982e10208
MINOR: trace: postresolve sink names

A previous known limitation about traces was that parsing was performed on
the fly, meaning that when using "sink" keyword, only sinks that were
either internal or previously defined in the config could be used. Indeed,
it was not possible to use a ring section defined AFTER the traces section
when using the 'sink' keyword from traces.

This limitation was also mentioned in the config file.

Let's get rid of that limitation by implementing proper postparsing for
the sink parameter in traces section. To do this, make use of the new
sink_find_early() helper to start referencing sink by their names even
if they don't exist yet (if they are about to be defined later in the
config)

Traces commands on the cli are not concerned by this change.
doc/configuration.txt
src/trace.c