mirror of
https://github.com/MariaDB/server.git
synced 2026-05-10 17:14:30 +02:00
Merge 10.4 into 10.5
This commit is contained in:
commit
23047d3ed4
89 changed files with 1906 additions and 873 deletions
|
|
@ -48,15 +48,6 @@ void btr_search_disable(bool need_mutex);
|
|||
/** Enable the adaptive hash search system. */
|
||||
void btr_search_enable();
|
||||
|
||||
/** Returns the value of ref_count. The value is protected by latch.
|
||||
@param[in] info search info
|
||||
@param[in] index index identifier
|
||||
@return ref_count value. */
|
||||
ulint
|
||||
btr_search_info_get_ref_count(
|
||||
btr_search_t* info,
|
||||
dict_index_t* index);
|
||||
|
||||
/*********************************************************************//**
|
||||
Updates the search info. */
|
||||
UNIV_INLINE
|
||||
|
|
@ -272,6 +263,18 @@ struct btr_search_t{
|
|||
};
|
||||
|
||||
#ifdef BTR_CUR_HASH_ADAPT
|
||||
/** @return number of leaf pages pointed to by the adaptive hash index */
|
||||
inline ulint dict_index_t::n_ahi_pages() const
|
||||
{
|
||||
if (!btr_search_enabled)
|
||||
return 0;
|
||||
rw_lock_t *latch = btr_get_search_latch(this);
|
||||
rw_lock_s_lock(latch);
|
||||
ulint ref_count= search_info->ref_count;
|
||||
rw_lock_s_unlock(latch);
|
||||
return ref_count;
|
||||
}
|
||||
|
||||
/** The hash index system */
|
||||
struct btr_search_sys_t{
|
||||
hash_table_t** hash_tables; /*!< the adaptive hash tables,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue