]> git.kaiwu.me - haproxy.git/commit
MINOR: proxy: use atomic ops for default proxy refcount
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 2 Mar 2026 10:15:41 +0000 (11:15 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 2 Mar 2026 13:14:05 +0000 (14:14 +0100)
commit6145f52d9c57d6faf4a914fd79d0e4c987089349
tree61143f3ac6d5e9eb796261cc8b6a17da3732cc2a
parentf64aa036d8c61101b0828073c6e9148787506d6b
MINOR: proxy: use atomic ops for default proxy refcount

Default proxy refcount <def_ref> is used to comptabilize reference on a
default proxy instance by standard proxies. Currently, this is necessary
when a default proxy defines TCP/HTTP rules or a tcpcheck ruleset.

Transform every access on <def_ref> so that atomic operations are now
used. Currently, this is not strictly needed as default proxies
references are only manipulated at init or deinit in single thread mode.
However, when dynamic backends deletion will be implemented, <def_ref>
will be decremented at runtime also.
src/proxy.c