mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-21 13:16:57 +00:00
[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.
This commit is contained in:
parent
da4d9fe5a4
commit
fbce6d0215
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user