Skip to content

Commit f36f6cf

Browse files
Olivier Houcharda-denoyelle
authored andcommitted
MINOR: proxies: Add a per-thread group lbprm struct.
Add a new structure in the per-thread groups proxy structure, that will contain whatever is per-thread group in lbprm. It will be accessed as p->per_tgrp[tgid].lbprm.
1 parent 7ca1c94 commit f36f6cf

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

include/haproxy/backend-t.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,11 @@
144144
*/
145145
#define BE_WEIGHT_SCALE 16
146146

147+
/* LB parameters for all algorithms, with one instance per thread-group */
148+
struct lbprm_per_tgrp {
149+
union {
150+
};
151+
};
147152
/* LB parameters for all algorithms */
148153
struct lbprm {
149154
union { /* LB parameters depending on the algo type */

include/haproxy/proxy-t.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ struct error_snapshot {
302302
/* Each proxy will have one occurrence of this structure per thread group */
303303
struct proxy_per_tgroup {
304304
struct queue queue;
305+
struct lbprm_per_tgrp lbprm;
305306
} THREAD_ALIGNED(64);
306307

307308
struct proxy {

0 commit comments

Comments
 (0)