]> git.kaiwu.me - haproxy.git/commit
MINOR: filters: Select legacy or instance model in lifecycle callbacks
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 2 Oct 2026 16:05:49 +0000 (18:05 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 9 Oct 2026 14:17:36 +0000 (16:17 +0200)
commit32f8f5c196c221e1c39098dbc9c25c72f2cdd15d
treeecb2bf1bbfd53910fea78ac5f835a499f5094ee4
parent319f83816b8186e047a2591cb94bcadcf5a52fd0
MINOR: filters: Select legacy or instance model in lifecycle callbacks

Make flt_init(), flt_init_per_thread(), flt_check(), flt_check_instances(),
flt_deinit() and flt_deinit_per_thread() process a single configuration
model, chosen with flt_use_legacy_filter(): the legacy filter configurations
or the finalized filter instances.

Instances are only initialized, checked and released in instance mode.
Legacy configurations are still released unconditionally because rules may
keep referencing them in instance mode, but their callbacks are not run when
instances were selected.

Previously both lists were always processed. This prepares attaching the
instances to streams without running startup callbacks twice.
src/filters.c