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.
diff --git a/src/haproxy.c b/src/haproxy.c
index f905473..5710cc2 100644
--- a/src/haproxy.c
+++ b/src/haproxy.c
@@ -2247,6 +2247,7 @@
/* *** { */
/* Put here all sync functions */
+ servers_update_status(); /* Commit server status changes */
/* *** } */
exit:
@@ -2282,8 +2283,6 @@
fd_process_cached_events();
applet_run_active();
- /* Commit server status changes */
- servers_update_status();
/* Synchronize all polling loops */
sync_poll_loop();