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:
da4d9fe
)
[BUG] stick table purge failure if size less than 255
author
Emeric Brun
<ebrun@exceliance.fr>
Thu, 23 Sep 2010 16:10:00 +0000
(18:10 +0200)
committer
Willy Tarreau
<w@1wt.eu>
Thu, 11 Nov 2010 08:28:18 +0000
(09:28 +0100)
If table size is lower than 256, we can't force to purge old entries.
This patch should be backported to 1.4.
src/stick_table.c
patch
|
blob
|
history
diff --git
a/src/stick_table.c
b/src/stick_table.c
index
78a0df7
..
cb9b6b3
100644
(file)
--- a/
src/stick_table.c
+++ b/
src/stick_table.c
@@
-158,7
+158,7
@@
struct stksess *stksess_new(struct stktable *t, struct stktable_key *key)
if ( t->nopurge )
return NULL;
- if (!stktable_trash_oldest(t, t->size >> 8))
+ if (!stktable_trash_oldest(t, (t->size >> 8) + 1))
return NULL;
}