projects
/
haproxy-2.1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edaff0a
)
MINOR: stick-table: don't attach to peers in stopped state
author
Willy Tarreau
<w@1wt.eu>
Fri, 1 May 2015 16:29:57 +0000
(18:29 +0200)
committer
Willy Tarreau
<w@1wt.eu>
Fri, 1 May 2015 18:16:28 +0000
(20:16 +0200)
This will be used to disable peers sections.
src/stick_table.c
patch
|
blob
|
history
diff --git
a/src/stick_table.c
b/src/stick_table.c
index
4459f46
..
8ebaa66
100644
(file)
--- 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);
}