]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: server: propagate lb changes through srv_lb_propagate()
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 18 Apr 2023 10:02:48 +0000 (12:02 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 21 Apr 2023 12:36:45 +0000 (14:36 +0200)
commit85b91375bf49aa7930fbfbff6910db0f8fd5c03f
treea1baaa98668e79906cbbf46fc5cb4451ed9f03a5
parent8bbe643acc9b6b4613367775e4b42e3a22110be1
MINOR: server: propagate lb changes through srv_lb_propagate()

Now that we have a generic srv_lb_propagate(s) function, let's
use it each time we explicitly wan't to set the status down as
well.

Indeed, it is tricky to try to handle "down" case explicitly,
instead we use srv_lb_propagate() which will call the proper
function that will handle the new server state.

This will allow some code cleanup and will prevent any logic
error.

This commit depends on:
- "MINOR: server: propagate server state change to lb through single function"
src/server.c