mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-08 16:23:24 -04:00
MINOR: servers: Add a back-pointer to the server in srv_per_thread
In struct srv_per_thread, add a pointer to the server, as with just a pointer to srv_per_thread, we can't figure out the related server.
This commit is contained in:
parent
a4520229a7
commit
6f8dab2583
2 changed files with 2 additions and 0 deletions
|
|
@ -279,6 +279,7 @@ struct srv_per_thread {
|
|||
struct ceb_root *idle_conns; /* Shareable idle connections */
|
||||
struct ceb_root *safe_conns; /* Safe idle connections */
|
||||
struct ceb_root *avail_conns; /* Connections in use, but with still new streams available */
|
||||
struct server *srv; /* Back-pointer to the server */
|
||||
#ifdef USE_QUIC
|
||||
struct ist quic_retry_token;
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -6128,6 +6128,7 @@ static int srv_init_per_thr(struct server *srv)
|
|||
srv->per_thr[i].idle_conns = NULL;
|
||||
srv->per_thr[i].safe_conns = NULL;
|
||||
srv->per_thr[i].avail_conns = NULL;
|
||||
srv->per_thr[i].srv = srv;
|
||||
MT_LIST_INIT(&srv->per_thr[i].sess_conns);
|
||||
MT_LIST_INIT(&srv->per_thr[i].streams);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue