Skip to content

Commit cf37e44

Browse files
dr-mvuvova
authored andcommitted
MDEV-31350: Hang in innodb.recovery_memory
buf_flush_page_cleaner(): Whenever buf_pool.ran_out(), invoke buf_pool.get_oldest_modification(0) so that all clean blocks will be removed from buf_pool.flush_list and buf_flush_LRU_list_batch() will be able to evict some pages. This fixes a regression that was likely caused by commit a55b951 (MDEV-26827).
1 parent dd29887 commit cf37e44

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

storage/innobase/buf/buf0flu.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2322,6 +2322,7 @@ static void buf_flush_page_cleaner()
23222322
else if (buf_pool.ran_out())
23232323
{
23242324
buf_pool.page_cleaner_set_idle(false);
2325+
buf_pool.get_oldest_modification(0);
23252326
mysql_mutex_unlock(&buf_pool.flush_list_mutex);
23262327
n= srv_max_io_capacity;
23272328
mysql_mutex_lock(&buf_pool.mutex);

0 commit comments

Comments
 (0)