summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2023-03-20 10:32:35 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2023-03-20 10:32:35 +0200
commit32a53a66df0369a446db1e41f5123afe62e793fb (patch)
tree64b53660eb5cd5f8c92e7e5bb78444aeca39941c /storage
parente8e0559ed213db0fffcfd9e2108eedaeb451f7f4 (diff)
downloadmariadb-git-32a53a66df0369a446db1e41f5123afe62e793fb.tar.gz
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.
Diffstat (limited to 'storage')
-rw-r--r--storage/innobase/buf/buf0flu.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/storage/innobase/buf/buf0flu.cc b/storage/innobase/buf/buf0flu.cc
index 326636e0c4d..484f6a3abb7 100644
--- a/storage/innobase/buf/buf0flu.cc
+++ b/storage/innobase/buf/buf0flu.cc
@@ -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. */