MINOR: server: read-lock the cookie during srv_set_dyncookie()
authorWilly Tarreau <w@1wt.eu>
Tue, 20 Oct 2020 15:30:08 +0000 (17:30 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 22 Oct 2020 15:32:28 +0000 (17:32 +0200)
commit595e767030a13136ea9bef4eacb38f7abe6cb211
tree6e9e371561424e343a20ba758aa2fb7ab830d396
parentac66d6bafbda79946e25aed6657f4ceab3e39536
MINOR: server: read-lock the cookie during srv_set_dyncookie()

No need to use an exclusive lock on the proxy anymore when reading its
setting, a read lock is enough. A few other places continue to use a
write-lock when modifying simple flags only in order to let this
function see a consistent value all along. This might be changed in
the future using barriers and local copies.
src/server.c