mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-14 06:32:11 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue