Author: zhongbei.yk Date: Thu Dec 12 09:48:26 2024 +0800 Fix buf_pool_validate_instance() It may appear that UT_LIST_GET_LEN(buf_pool->free) < n_free due to some bugs. So the code should be " UT_LIST_GET_LEN(buf_pool->free) != n_free ". diff --git a/storage/innobase/buf/buf0buf.cc b/storage/innobase/buf/buf0buf.cc index 6b330837a72..b84d462218b 100644 --- a/storage/innobase/buf/buf0buf.cc +++ b/storage/innobase/buf/buf0buf.cc @@ -6121,7 +6121,7 @@ static void buf_pool_validate_instance(buf_pool_t *buf_pool) { mutex_exit(&buf_pool->chunks_mutex); if (buf_pool->curr_size == buf_pool->old_size && - UT_LIST_GET_LEN(buf_pool->free) > n_free) { + UT_LIST_GET_LEN(buf_pool->free) != n_free) { ib::fatal(UT_LOCATION_HERE, ER_IB_MSG_85) << "Free list len " << UT_LIST_GET_LEN(buf_pool->free) << ", free blocks " << n_free << ". Aborting...";