mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02:00
MEDIUM: config: propagate the table's process list to the peers sections
Now a peers section has its bind_proc set to the union of all those of its users.
This commit is contained in:
parent
46dc1ca761
commit
0fca4835b2
@ -7898,6 +7898,11 @@ out_uri_auth_compat:
|
|||||||
global.last_checks |= cfg_opts2[optnum].checks;
|
global.last_checks |= cfg_opts2[optnum].checks;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* compute the required process bindings for the peers */
|
||||||
|
for (curproxy = proxy; curproxy; curproxy = curproxy->next)
|
||||||
|
if (curproxy->table.peers.p)
|
||||||
|
curproxy->table.peers.p->peers_fe->bind_proc |= curproxy->bind_proc;
|
||||||
|
|
||||||
if (peers) {
|
if (peers) {
|
||||||
struct peers *curpeers = peers, **last;
|
struct peers *curpeers = peers, **last;
|
||||||
struct peer *p, *pb;
|
struct peer *p, *pb;
|
||||||
|
@ -1097,6 +1097,7 @@ void peers_setup_frontend(struct proxy *fe)
|
|||||||
fe->accept = frontend_accept;
|
fe->accept = frontend_accept;
|
||||||
fe->default_target = &peer_applet.obj_type;
|
fe->default_target = &peer_applet.obj_type;
|
||||||
fe->options2 |= PR_O2_INDEPSTR | PR_O2_SMARTCON | PR_O2_SMARTACC;
|
fe->options2 |= PR_O2_INDEPSTR | PR_O2_SMARTCON | PR_O2_SMARTACC;
|
||||||
|
fe->bind_proc = 0; /* will be filled by users */
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user