mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-22 21:56:55 +00:00
BUG/MEDIUM: sink: Set the sink ref for forwarders created during ring parsing
A reference to the sink was added in every forwarder by the commit 2ae25ea24
("MINOR: sink: Add a ref to sink in the sink_forward_target structure"). But
this commit is incomplete. It is not performed for the forwarders created
during a ring parsing.
This patch must be backported to 2.6.
This commit is contained in:
parent
b8e0fb97f3
commit
96417f392d
@ -1102,6 +1102,7 @@ int cfg_post_parse_ring()
|
||||
sft->srv = srv;
|
||||
sft->appctx = NULL;
|
||||
sft->ofs = ~0; /* init ring offset */
|
||||
sft->sink = cfg_sink;
|
||||
sft->next = cfg_sink->sft;
|
||||
HA_SPIN_INIT(&sft->lock);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user