mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
MDEV-5830: Assertion failure mutex_get_waiters(mutex) == 0 at shutdown.
This commit is contained in:
parent
7ba9f0640e
commit
a092a40334
1 changed files with 3 additions and 0 deletions
|
@ -2290,11 +2290,14 @@ buf_LRU_block_free_non_file_page(
|
|||
page_zip_set_size(&block->page.zip, 0);
|
||||
}
|
||||
|
||||
ut_a(buf_pool->free_list_mutex.high_priority_waiters == 0);
|
||||
mutex_enter_first(&buf_pool->free_list_mutex);
|
||||
ut_a(buf_pool->free_list_mutex.high_priority_waiters == 0);
|
||||
buf_block_set_state(block, BUF_BLOCK_NOT_USED);
|
||||
UT_LIST_ADD_FIRST(list, buf_pool->free, (&block->page));
|
||||
ut_d(block->page.in_free_list = TRUE);
|
||||
mutex_exit(&buf_pool->free_list_mutex);
|
||||
ut_a(buf_pool->free_list_mutex.high_priority_waiters == 0);
|
||||
|
||||
UNIV_MEM_ASSERT_AND_FREE(block->frame, UNIV_PAGE_SIZE);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue