From: Willy Tarreau Date: Fri, 1 May 2015 16:29:57 +0000 (+0200) Subject: MINOR: stick-table: don't attach to peers in stopped state X-Git-Tag: v1.6-dev2~159 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c8b679180d3ad5def791799c6cb3e2d2a45db138;p=thirdparty%2Fhaproxy.git MINOR: stick-table: don't attach to peers in stopped state This will be used to disable peers sections. --- diff --git a/src/stick_table.c b/src/stick_table.c index 4459f46859..8ebaa66aac 100644 --- a/src/stick_table.c +++ b/src/stick_table.c @@ -396,7 +396,7 @@ int stktable_init(struct stktable *t) t->exp_task->expire = TICK_ETERNITY; t->exp_task->context = (void *)t; } - if (t->peers.p && t->peers.p->peers_fe) { + if (t->peers.p && t->peers.p->peers_fe && t->peers.p->peers_fe->state != PR_STSTOPPED) { peers_register_table(t->peers.p, t); }