From a8f044e1a42fedc7ad1c5532873af3d812c0b493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= Date: Tue, 19 May 2020 16:02:00 +0300 Subject: [PATCH] MDEV-22456: Fix cmake -DWITH_INNODB_AHI=OFF dict_index_remove_from_cache_low(): Add a missing #ifdef around dict_index_t::freed(). --- storage/innobase/dict/dict0dict.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/storage/innobase/dict/dict0dict.cc b/storage/innobase/dict/dict0dict.cc index 3dfbe92e34c..5fb6f676e80 100644 --- a/storage/innobase/dict/dict0dict.cc +++ b/storage/innobase/dict/dict0dict.cc @@ -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). */