MINOR: threads/server: Add a lock to deal with insert in updates_servers list
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 16 Oct 2017 10:00:40 +0000 (12:00 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Oct 2017 12:58:31 +0000 (13:58 +0100)
commit5d42e099c565c8002cf0f6fd0f29e3e6fbfdc723
tree452364d2dfec41ed01ce544916193a3e9f7cee7a
parent29f77e846bd9cad8b9984dc5304e6edcaa4f435d
MINOR: threads/server: Add a lock to deal with insert in updates_servers list

This list is used to save changes on the servers state. So when serveral threads
are used, it must be locked. The changes are then applied in the sync-point. To
do so, servers_update_status has be moved in the sync-point. So this is useless
to lock it at this step because the sync-point is a protected area by iteself.
include/common/hathreads.h
src/haproxy.c
src/server.c