extern struct idle_conns idle_conns[MAX_THREADS];
extern struct task *idle_conn_task[MAX_THREADS];
extern struct eb_root idle_conn_srv[MAX_THREADS];
-extern struct mt_list servers_list;
+extern struct mt_list all_servers;
extern struct dict server_key_dict;
int srv_downtime(const struct server *s);
* we must finish to initialize certain things on the servers,
* as some of the fields may be accessed soon
*/
- MT_LIST_FOR_EACH_ENTRY_LOCKED(newsrv, &servers_list, global_list, back) {
+ MT_LIST_FOR_EACH_ENTRY_LOCKED(newsrv, &all_servers, global_list, back) {
err_code |= srv_preinit(newsrv);
if (err_code & ERR_CODE)
goto out;
struct eb_root idle_conn_srv[MAX_THREADS];
struct task *idle_conn_task[MAX_THREADS] __read_mostly = {};
-struct mt_list servers_list = MT_LIST_HEAD_INIT(servers_list);
+struct mt_list all_servers = MT_LIST_HEAD_INIT(all_servers);
static struct task *server_atomic_sync_task = NULL;
static event_hdl_async_equeue server_atomic_sync_queue;
}
}
-/* Allocates a server, attaches it to the global servers_list
+/* Allocates a server, attaches it to the global <all_servers> list
* and adds it to <proxy> server list. Before deleting the server with
* srv_drop(), srv_detach() must be called to remove it from the parent
* proxy list
srv->obj_type = OBJ_TYPE_SERVER;
srv->proxy = proxy;
- MT_LIST_APPEND(&servers_list, &srv->global_list);
+ MT_LIST_APPEND(&all_servers, &srv->global_list);
LIST_INIT(&srv->srv_rec_item);
LIST_INIT(&srv->ip_rec_item);
LIST_INIT(&srv->pp_tlvs);