mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-28 16:40:37 +00:00
MINOR: checks: export a few functions that appear often in trace dumps
The check I/O handler, process_chk_conn and server_warmup are often present in complex backtraces as they're impacted by locking or I/O issues. Let's export them so that they resolve cleanly.
This commit is contained in:
parent
ac6322dd36
commit
025fc71b47
@ -820,7 +820,7 @@ static int wake_srv_chk(struct conn_stream *cs)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* This function checks if any I/O is wanted, and if so, attempts to do so */
|
/* This function checks if any I/O is wanted, and if so, attempts to do so */
|
||||||
static struct task *event_srv_chk_io(struct task *t, void *ctx, unsigned short state)
|
struct task *event_srv_chk_io(struct task *t, void *ctx, unsigned short state)
|
||||||
{
|
{
|
||||||
struct check *check = ctx;
|
struct check *check = ctx;
|
||||||
struct conn_stream *cs = check->cs;
|
struct conn_stream *cs = check->cs;
|
||||||
@ -835,7 +835,7 @@ static struct task *event_srv_chk_io(struct task *t, void *ctx, unsigned short s
|
|||||||
* Please do NOT place any return statement in this function and only leave
|
* Please do NOT place any return statement in this function and only leave
|
||||||
* via the out_unlock label.
|
* via the out_unlock label.
|
||||||
*/
|
*/
|
||||||
static struct task *process_chk_conn(struct task *t, void *context, unsigned short state)
|
struct task *process_chk_conn(struct task *t, void *context, unsigned short state)
|
||||||
{
|
{
|
||||||
struct check *check = context;
|
struct check *check = context;
|
||||||
struct proxy *proxy = check->proxy;
|
struct proxy *proxy = check->proxy;
|
||||||
@ -1107,7 +1107,7 @@ static int start_check_task(struct check *check, int mininter,
|
|||||||
* reached, the task automatically stops. Note that any server status change
|
* reached, the task automatically stops. Note that any server status change
|
||||||
* must have updated s->last_change accordingly.
|
* must have updated s->last_change accordingly.
|
||||||
*/
|
*/
|
||||||
static struct task *server_warmup(struct task *t, void *context, unsigned short state)
|
struct task *server_warmup(struct task *t, void *context, unsigned short state)
|
||||||
{
|
{
|
||||||
struct server *s = context;
|
struct server *s = context;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user