mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
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:
@@ -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). */
|
||||
|
||||
Reference in New Issue
Block a user