mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-10-26 14:10:59 +01:00
BUG/MEDIUM: stick-tables: Don't loop if there's nothing left
Before waking up the expiration task again at the end of it, make sure the next date is set. If there's nothing left to do, then task_exp will be TASK_ETERNITY and we then don't want to be waken up again.
This commit is contained in:
parent
871c80505c
commit
dfe866fa98
@ -1135,7 +1135,7 @@ struct task *process_tables_expire(struct task *task, void *context, unsigned in
|
||||
table_eb = tmpnode;
|
||||
}
|
||||
|
||||
if (tick_is_le(task_exp, now_ms)) {
|
||||
if (tick_isset(task_exp) && tick_is_le(task_exp, now_ms)) {
|
||||
/*
|
||||
* More to do, we should wake up immediately.
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user