BUG/MEDIUM: cli/threads: protect some server commands against concurrent operations
authorWilly Tarreau <w@1wt.eu>
Tue, 21 Aug 2018 13:35:31 +0000 (15:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 21 Aug 2018 13:35:31 +0000 (15:35 +0200)
commit3bcc2699ba08dd3971ae7a56631994b2524d2acb
treeb68a860581016e0a3514f51d6cd814857cff988b
parent46b7f53ad957d9f9a44e69bf23382ffc9bab724c
BUG/MEDIUM: cli/threads: protect some server commands against concurrent operations

The server-specific CLI commands "set weight", "set maxconn",
"disable agent", "enable agent", "disable health", "enable health",
"disable server" and "enable server" were not protected against
concurrent accesses. Now they take the server lock around the
sensitive part.

This patch must be backported to 1.8.
src/server.c