]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: backend: use a single variable for removed in srv_cleanup_idle_conns()
authorWilly Tarreau <w@1wt.eu>
Fri, 12 Sep 2025 14:28:58 +0000 (16:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 16 Sep 2025 07:23:46 +0000 (09:23 +0200)
commitefe519ab895042bd7efa1077bc36b3e0fec61520
tree0442c6d1c36bee9b780e3db611909feea76468f9
parentf7d1fc2b08c9b77b26a8b25a6d38c885afc55b09
CLEANUP: backend: use a single variable for removed in srv_cleanup_idle_conns()

Probably due to older code, there's a boolean variable used to set
another one which is then checked. Also the first check is made under
the lock, which is unnecessary. Let's simplify this and use a single
variable. This only makes the code clearer, it doesn't change the output
code.
src/server.c