Commit 32a53a66 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-26827 fixup: Remove a bogus assertion

We can have dirty_blocks=0 when buf_flush_page_cleaner() is being woken up
to write out or evict pages from the buf_pool.LRU list.
parent e8e0559e
...@@ -2324,7 +2324,6 @@ static void buf_flush_page_cleaner() ...@@ -2324,7 +2324,6 @@ static void buf_flush_page_cleaner()
break; break;
const ulint dirty_blocks= UT_LIST_GET_LEN(buf_pool.flush_list); const ulint dirty_blocks= UT_LIST_GET_LEN(buf_pool.flush_list);
ut_ad(dirty_blocks);
/* We perform dirty reads of the LRU+free list lengths here. /* We perform dirty reads of the LRU+free list lengths here.
Division by zero is not possible, because buf_pool.flush_list is Division by zero is not possible, because buf_pool.flush_list is
guaranteed to be nonempty, and it is a subset of buf_pool.LRU. */ guaranteed to be nonempty, and it is a subset of buf_pool.LRU. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment