mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 03:17:20 +02:00
MDEV-31939 Adaptive flush recommendation ignores dirty ratio and checkpoint age
buf_flush_page_cleaner(): Pass pct_lwm=srv_max_dirty_pages_pct_lwm
(innodb_max_dirty_pages_pct_lwm) to
page_cleaner_flush_pages_recommendation() unless the dirty page ratio
of the buffer pool is below that. Starting with
commit d4265fbde5 we used to always
pass pct_lwm=0.0, which was not intended.
Reviewed by: Vladislav Vaintroub
This commit is contained in:
parent
d7c6d306fb
commit
c8346c0bac
1 changed files with 4 additions and 3 deletions
|
|
@ -2379,10 +2379,11 @@ static os_thread_ret_t DECLARE_THREAD(buf_flush_page_cleaner)(void*)
|
|||
else
|
||||
{
|
||||
maybe_unemployed:
|
||||
const bool below{dirty_pct < pct_lwm};
|
||||
pct_lwm= 0.0;
|
||||
if (below)
|
||||
if (dirty_pct < pct_lwm)
|
||||
{
|
||||
pct_lwm= 0.0;
|
||||
goto possibly_unemployed;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (dirty_pct < srv_max_buf_pool_modified_pct)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue