commit | fbce6d0215515dc2341767d5aeeecccc29e043eb | [log] [tgz] |
---|---|---|
author | Emeric Brun <ebrun@exceliance.fr> | Thu Sep 23 18:10:00 2010 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Nov 11 09:28:18 2010 +0100 |
tree | 6a417604e65e3ab55465f445c7e026d1154a72f2 | |
parent | da4d9fe5a428b2819929a53a4266c8f78a1fb147 [diff] |
[BUG] stick table purge failure if size less than 255 If table size is lower than 256, we can't force to purge old entries. This patch should be backported to 1.4.
diff --git a/src/stick_table.c b/src/stick_table.c index 78a0df7..cb9b6b3 100644 --- a/src/stick_table.c +++ b/src/stick_table.c
@@ -158,7 +158,7 @@ if ( t->nopurge ) return NULL; - if (!stktable_trash_oldest(t, t->size >> 8)) + if (!stktable_trash_oldest(t, (t->size >> 8) + 1)) return NULL; }