]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: list: define a watcher type
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 23 Oct 2024 09:31:44 +0000 (11:31 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 10 Dec 2024 15:04:11 +0000 (16:04 +0100)
commiteafa8a32bb19ee567cb0a60a4042a8ef436e1e94
tree68f33414d7e3201148d7e65fe8070cd3d3f72bc6
parent2199179461957c86f57e39c4d97c37f3e4d10935
MINOR: list: define a watcher type

Define a new watcher type into list module. This type is similar to bref
and can be used to register an element which is currently tracking a
dynamic target. Contrary to bref, if the target is freed, every watcher
element are updated to point to a next valid entry or NULL.

This type will simplify handling of dynamic servers deletion, in
particular while stats dump are performed.

This patch is not a bug-fix. However, it is mandatory to fix a race
condition in dynamic servers. Thus, it should be backported along the
next commit up to 2.6.
include/haproxy/list-t.h
include/haproxy/list.h