Skip to content

Commit

Permalink
MDEV-26827 fixup: Remove a bogus assertion
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dr-m committed Mar 20, 2023
1 parent e8e0559 commit 32a53a6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion storage/innobase/buf/buf0flu.cc
Expand Up @@ -2324,7 +2324,6 @@ static void buf_flush_page_cleaner()
break;

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.
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. */
Expand Down

0 comments on commit 32a53a6

Please sign in to comment.