diff --git a/storage/innobase/buf/buf0flu.cc b/storage/innobase/buf/buf0flu.cc index 21ca288ec23..4f7fb316b88 100644 --- a/storage/innobase/buf/buf0flu.cc +++ b/storage/innobase/buf/buf0flu.cc @@ -1798,7 +1798,7 @@ ulint buf_flush_LRU(ulint max_n, bool evict) pthread_cond_broadcast(&buf_pool.done_free); } else if (!pages && !buf_pool.try_LRU_scan && - buf_pool.LRU_warned.test_and_set(std::memory_order_acquire)) + !buf_pool.LRU_warned.test_and_set(std::memory_order_acquire)) { /* For example, with the minimum innodb_buffer_pool_size=5M and the default innodb_page_size=16k there are only a little over 316