Skip to content

Commit a8f044e

Browse files
committed
MDEV-22456: Fix cmake -DWITH_INNODB_AHI=OFF
dict_index_remove_from_cache_low(): Add a missing #ifdef around dict_index_t::freed().
1 parent cb43741 commit a8f044e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

storage/innobase/dict/dict0dict.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2371,7 +2371,9 @@ dict_index_remove_from_cache_low(
23712371
ut_ad(index->magic_n == DICT_INDEX_MAGIC_N);
23722372
ut_ad(mutex_own(&dict_sys->mutex));
23732373
ut_ad(table->id);
2374+
#ifdef BTR_CUR_HASH_ADAPT
23742375
ut_ad(!index->freed());
2376+
#endif /* BTR_CUR_HASH_ADAPT */
23752377

23762378
/* No need to acquire the dict_index_t::lock here because
23772379
there can't be any active operations on this index (or table). */

0 commit comments

Comments
 (0)