Commit a8f044e1 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-22456: Fix cmake -DWITH_INNODB_AHI=OFF

dict_index_remove_from_cache_low(): Add a missing #ifdef around
dict_index_t::freed().
parent cb437417
...@@ -2371,7 +2371,9 @@ dict_index_remove_from_cache_low( ...@@ -2371,7 +2371,9 @@ dict_index_remove_from_cache_low(
ut_ad(index->magic_n == DICT_INDEX_MAGIC_N); ut_ad(index->magic_n == DICT_INDEX_MAGIC_N);
ut_ad(mutex_own(&dict_sys->mutex)); ut_ad(mutex_own(&dict_sys->mutex));
ut_ad(table->id); ut_ad(table->id);
#ifdef BTR_CUR_HASH_ADAPT
ut_ad(!index->freed()); ut_ad(!index->freed());
#endif /* BTR_CUR_HASH_ADAPT */
/* No need to acquire the dict_index_t::lock here because /* No need to acquire the dict_index_t::lock here because
there can't be any active operations on this index (or table). */ there can't be any active operations on this index (or table). */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment