BUG/MINOR: server-state: load SRV resolution only if params match the config
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 10 Jun 2021 14:59:53 +0000 (16:59 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 11 Jun 2021 14:16:20 +0000 (16:16 +0200)
commit85af93b8c74b5664fc473cf84d59ce6279249216
tree0eee4e8110a0b0b84c4bdfca52092bc9a08ecb03
parent3406766d57fc11478d54a6fa2d048cbfe4524a4e
BUG/MINOR: server-state: load SRV resolution only if params match the config

When the state of a server is loaded, if there is no hostname defined for
this server and if a fqdn and a server record are retrieved from the state
file, it means the server should rely on a SRV resolution. But we must be
sure the server is configured this way. A SRV resolution must be configured
with the same SRV record. This part must be skipped if there is no SRV
resolution configured for this server or if the SRV record used is not the
same.

This patch should be backported as far as 1.8 after some observation period.
src/server_state.c