mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 05:41:26 +02:00
MINOR: sink: don't rely on forward_px to init sink forwarding
Instead, we check if at least one sft has been registered into the sink, if it is the case, then we need to init the forwarding for the sink.
This commit is contained in:
parent
3c53f6cb76
commit
405567c125
@ -894,12 +894,13 @@ static int sink_finalize(struct sink *sink)
|
||||
sink->sft = sft;
|
||||
srv = srv->next;
|
||||
}
|
||||
if (sink_init_forward(sink) == 0) {
|
||||
}
|
||||
/* init forwarding if at least one sft is registered */
|
||||
if (sink->sft && sink_init_forward(sink) == 0) {
|
||||
ha_alert("error when trying to initialize sink buffer forwarding.\n");
|
||||
err_code |= ERR_ALERT | ERR_FATAL;
|
||||
}
|
||||
}
|
||||
}
|
||||
return err_code;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user