diff options
author | Thirunarayanan Balathandayuthapani <thiru@mariadb.com> | 2022-11-17 17:24:13 +0530 |
---|---|---|
committer | Thirunarayanan Balathandayuthapani <thiru@mariadb.com> | 2022-11-22 15:24:44 +0530 |
commit | 71c93fb8fd894e39b81b801a67ccb9de535b6ce8 (patch) | |
tree | 647e29cb7889df1276aa773d513d5449875edd05 /storage/innobase/include/btr0sea.h | |
parent | f4a1298f245f678badc8a5b55571ca4f460718b1 (diff) | |
download | mariadb-git-71c93fb8fd894e39b81b801a67ccb9de535b6ce8.tar.gz |
MDEV-28462 Race condition between instant alter and AHI access
- InnoDB AHI tries to access the concurrent instant alter column,
leads to asan failure. Instant alter column should acquire the
clustered index search latch in exclusive mode before changing
the table cache definition.
- Removed the default parameter for the function
btr_search_drop_page_hash_index()
- Addressed the DWITH_INNODB_AHI=0 compilation failure
by passing two parameters from all callers of
btr_search_drop_page_hash_index()
Diffstat (limited to 'storage/innobase/include/btr0sea.h')
-rw-r--r-- | storage/innobase/include/btr0sea.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/innobase/include/btr0sea.h b/storage/innobase/include/btr0sea.h index f217f8213f8..82ae50d6fac 100644 --- a/storage/innobase/include/btr0sea.h +++ b/storage/innobase/include/btr0sea.h @@ -102,7 +102,7 @@ btr_search_move_or_delete_hash_entries( @param[in] garbage_collect drop ahi only if the index is marked as freed */ void btr_search_drop_page_hash_index(buf_block_t* block, - bool garbage_collect= false); + bool garbage_collect); /** Drop possible adaptive hash index entries when a page is evicted from the buffer pool or freed in a file, or the index is being dropped. |