mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-23 02:01:55 +00:00
IO loop: fixed local hot page cache flushing condition
This commit is contained in:
parent
24a6336acf
commit
418578bc6b
@ -885,7 +885,7 @@ bird_thread_main(void *arg)
|
|||||||
ASSERT_DIE(pfd.loop.used == pfd.pfd.used);
|
ASSERT_DIE(pfd.loop.used == pfd.pfd.used);
|
||||||
}
|
}
|
||||||
/* Nothing to do in at least 5 seconds, flush local hot page cache */
|
/* Nothing to do in at least 5 seconds, flush local hot page cache */
|
||||||
else if ((timeout > 5000) && (timeout < 0))
|
else if ((timeout > 5000) || (timeout < 0))
|
||||||
flush_local_pages();
|
flush_local_pages();
|
||||||
|
|
||||||
bird_thread_busy_update(thr, timeout);
|
bird_thread_busy_update(thr, timeout);
|
||||||
|
Loading…
Reference in New Issue
Block a user