From 05e73911d72b2f0ffcf8db083bf5791738e1cf79 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Mon, 1 Apr 2024 15:03:24 +0200 Subject: [PATCH] IO loop: fixed local hot page cache flushing condition --- sysdep/unix/io-loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdep/unix/io-loop.c b/sysdep/unix/io-loop.c index 0a222ba0..705b3407 100644 --- a/sysdep/unix/io-loop.c +++ b/sysdep/unix/io-loop.c @@ -885,7 +885,7 @@ bird_thread_main(void *arg) ASSERT_DIE(pfd.loop.used == pfd.pfd.used); } /* 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(); bird_thread_busy_update(thr, timeout);