MINOR: server: enhance error precision when applying server state
authorWilliam Dauchy <wdauchy@gmail.com>
Thu, 11 Feb 2021 21:51:27 +0000 (22:51 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 12 Feb 2021 15:04:52 +0000 (16:04 +0100)
commitddc7ce9645ff9ba87294064afcdcf24bbbc996a0
treee88b1494b411409e411d50dbdde08300dbda0410
parentd1a7b85a40adfc5d1de8e0547efcbed7c5605809
MINOR: server: enhance error precision when applying server state

server health checks and agent parameters are written the same way as
others to be able to enahcne code reuse: basically we make use of
parsing and assignment at the same place. It makes it difficult for
error handling to know whether srv object was modified partially or not.
The problem was already present with SRV resolution though.

I was a bit puzzled about the approach to take to be honest, and I did
not wanted to go into a full refactor, so I assumed it was ok to simply
notify whether the line was failed or partially applied.

Signed-off-by: William Dauchy <wdauchy@gmail.com>
src/server.c