]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: server: simplify srv_has_streams()
authorWilly Tarreau <w@1wt.eu>
Tue, 18 Mar 2025 10:30:37 +0000 (11:30 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 18 Mar 2025 16:36:02 +0000 (17:36 +0100)
commit0e8c573b4b0c41dff15dcec02a82c23a64862b7d
tree753564cf2e66a13b170336d070bbe380100421ff
parent4651c4edd5c32ffd5a2244147b3b7bff20accd5f
MINOR: server: simplify srv_has_streams()

Now that thanks to commit c880c32b16 ("MINOR: stream: decrement
srv->served after detaching from the list") we can trust srv->served,
let's use it and no longer loop on threads when checking if a server
still has streams attached to it. This will be much cheaper and will
result in keeping isolation for a shorter time in the "wait" command.
src/server.c