MDEV-22456: Fix cmake -DWITH_INNODB_AHI=OFF

dict_index_remove_from_cache_low(): Add a missing #ifdef around
dict_index_t::freed().
This commit is contained in:
Marko Mäkelä 2020-05-19 16:02:00 +03:00
parent cb437417d2
commit a8f044e1a4

View File

@ -2371,7 +2371,9 @@ dict_index_remove_from_cache_low(
ut_ad(index->magic_n == DICT_INDEX_MAGIC_N);
ut_ad(mutex_own(&dict_sys->mutex));
ut_ad(table->id);
#ifdef BTR_CUR_HASH_ADAPT
ut_ad(!index->freed());
#endif /* BTR_CUR_HASH_ADAPT */
/* No need to acquire the dict_index_t::lock here because
there can't be any active operations on this index (or table). */