MDEV-6506: InnoDB: Assertion failure in thread 2810182464 in file

buf0flu.cc line 549.

Analysis: If buf_page_get_state(bpage) == BUF_BLOCK_REMOVE_HASH then
buf_page_in_file(bpage) might not be true. 

Fix: ut_a(buf_page_in_file(bpage) || buf_page_get_state(bpage) == BUF_BLOCK_REMOVE_HASH);
This commit is contained in:
Jan Lindström 2014-07-31 10:32:52 +03:00
parent f9eeeae3c9
commit c2536764d8

View file

@ -546,7 +546,7 @@ buf_flush_ready_for_flush(
ut_ad(flush_type < BUF_FLUSH_N_TYPES);
ut_ad(mutex_own(buf_page_get_mutex(bpage))
|| flush_type == BUF_FLUSH_LIST);
ut_a(buf_page_in_file(bpage));
ut_a(buf_page_in_file(bpage) || buf_page_get_state(bpage) == BUF_BLOCK_REMOVE_HASH);
if (bpage->oldest_modification == 0
|| buf_page_get_io_fix_unlocked(bpage) != BUF_IO_NONE) {