BUG/MINOR: server/cli: Fix locking in function processing "set server" command
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 18 Jun 2021 06:47:14 +0000 (08:47 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 18 Jun 2021 07:16:32 +0000 (09:16 +0200)
commit0ba54bb40102787ce875c5d15cb0fb4193f178ec
treeb4c32fec46e45affd6a7d751ce2397b6a95503ba
parente886dd5c32aa1bc99acf48c5bb1826f80d96923d
BUG/MINOR: server/cli: Fix locking in function processing "set server" command

The commit c7b391aed ("BUG/MEDIUM: server/cli: Fix ABBA deadlock when fqdn
is set from the CLI") introduced 2 bugs. The first one is a typo on the
server's lock label (s/SERVER_UNLOCK/SERVER_LOCK/). The second one is about
the server's lock itself. It must be acquired to execute the "agent-send"
subcommand.

The patch above is marked to be backported as far as 1.8. Thus, this one
must also backported as far 1.8.

BUG/MINOR: server/cli: Don't forget to lock server on agent-send subcommand
src/server.c