mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-12-08 19:21:05 +01:00
MINOR: proxies: Initialize the per-thread structure earlier.
Move the call to initialize the proxy's per-thread structure earlier than currently done, so that they are usable when we're initializing the load balancers.
This commit is contained in:
parent
e7613d3717
commit
5e1ce09e54
@ -2826,6 +2826,7 @@ init_proxies_list_stage1:
|
|||||||
struct logger *tmplogger;
|
struct logger *tmplogger;
|
||||||
unsigned int next_id;
|
unsigned int next_id;
|
||||||
|
|
||||||
|
proxy_init_per_thr(curproxy);
|
||||||
if (!(curproxy->cap & PR_CAP_INT) && curproxy->uuid < 0) {
|
if (!(curproxy->cap & PR_CAP_INT) && curproxy->uuid < 0) {
|
||||||
/* proxy ID not set, use automatic numbering with first
|
/* proxy ID not set, use automatic numbering with first
|
||||||
* spare entry starting with next_pxid. We don't assign
|
* spare entry starting with next_pxid. We don't assign
|
||||||
@ -4202,7 +4203,6 @@ init_proxies_list_stage2:
|
|||||||
struct listener *listener;
|
struct listener *listener;
|
||||||
unsigned int next_id;
|
unsigned int next_id;
|
||||||
|
|
||||||
proxy_init_per_thr(curproxy);
|
|
||||||
/* Configure SSL for each bind line.
|
/* Configure SSL for each bind line.
|
||||||
* Note: if configuration fails at some point, the ->ctx member
|
* Note: if configuration fails at some point, the ->ctx member
|
||||||
* remains NULL so that listeners can later detach.
|
* remains NULL so that listeners can later detach.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user