]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: server: split the server deletion code in two parts
authorWilly Tarreau <w@1wt.eu>
Fri, 9 Feb 2024 18:28:13 +0000 (19:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Feb 2024 19:38:08 +0000 (20:38 +0100)
commit9b680d7411c43fe99976cad9fef6e659e5cba457
tree429b2fc7aaa88ef8874a1addd7f91c12b4463f62
parent17cc4e468452008b6a2bc72c19511c11896199f6
MINOR: server: split the server deletion code in two parts

We'll need to be able to verify whether or not a server may be deleted.
For now, both the verification and the action are performed in the same
function, at once under thread isolation. The goal here is to extract
the verification code into a new function that will perform these checks,
return a status between success/recoverable/non-recoverable failure, and
will also return a message for the caller.
include/haproxy/server.h
src/server.c