]> git.kaiwu.me - haproxy.git/commit
MINOR: log: convert list to standard doubly linked one
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 16 Jul 2026 10:00:46 +0000 (12:00 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Jul 2026 14:03:19 +0000 (16:03 +0200)
commit262012e0ee71a665764c343259ac03e181035487
treef0d66768aaa51787b4efd53208b37f09f70a9c57
parent0bc23e9dab667291c832754a4a8b8a8f18a3c319
MINOR: log: convert list to standard doubly linked one

Log-forward proxies are not stored in <proxies_list> alongside other
visible user proxies. Instead, they are stored in a dedicated list
<cfg_log_forward>.

As with the visible proxies list, log forwarders list was defined as a
simple singly linked one. This patch converts it to the doubly linked
standard list type, frequently used in haproxy source code. Proxy <el>
member is reused as list attach point. It was only used by defaults
instances prior to this patch.

This patch does not bring noticeable change. However it will simplify
visible proxies list similar conversion as both lists are looped over
together during check_config_validity().
include/haproxy/log.h
include/haproxy/proxy-t.h
src/cfgparse.c
src/haproxy.c
src/log.c