]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: server: make it clear that srv_check_for_deletion() is thread-safe
authorWilly Tarreau <w@1wt.eu>
Tue, 18 Mar 2025 10:38:56 +0000 (11:38 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 18 Mar 2025 16:36:02 +0000 (17:36 +0100)
commitaad8e74cb9c382c5a0ab1a53aff0e38b06ce6806
tree2d849253f4858a6e47cffa81e10d623fb63939cd
parent0e8c573b4b0c41dff15dcec02a82c23a64862b7d
CLEANUP: server: make it clear that srv_check_for_deletion() is thread-safe

This function was marked as requiring thread isolation because its code
was extracted from cli_parse_delete_server() and was running under
isolation. But upon closer inspection, and using atomic loads to check
a few counters, it is actually safe to run without isolation, so let's
reflect that in its description.

However, it remains true that cli_parse_delete_server() continues to call
it under isolation.
src/server.c