MySQL 8.0.37
Source Code Documentation
btr0sea.ic File Reference

The index tree adaptive search. More...

#include "btr0cur.h"
#include "buf0buf.h"
#include "dict0mem.h"
#include "sync0rw.h"

Functions

void btr_search_info_update_slow (btr_cur_t *cursor)
 Updates the search info statistics following a search in B-tree that was performed not using or not finding row with the AHI index. More...
 
static void btr_search_info_update (btr_cur_t *cursor)
 
static void btr_search_x_lock (const dict_index_t *index, ut::Location location)
 
static bool btr_search_x_lock_nowait (const dict_index_t *index, ut::Location location)
 
static void btr_search_x_unlock (const dict_index_t *index)
 
static void btr_search_x_lock_all (ut::Location location)
 
static void btr_search_x_unlock_all ()
 
static void btr_search_s_lock (const dict_index_t *index, ut::Location location)
 
static bool btr_search_s_lock_nowait (const dict_index_t *index, ut::Location location)
 
static void btr_search_s_unlock (const dict_index_t *index)
 
static void btr_search_s_lock_all (ut::Location location)
 
static void btr_search_s_unlock_all ()
 
static bool btr_search_own_all (ulint mode)
 
static bool btr_search_own_any (ulint mode)
 
static size_t btr_search_hash_index_id (const dict_index_t *index)
 
static btr_search_sys_t::search_part_tbtr_get_search_part (const dict_index_t *index)
 
static rw_lock_tbtr_get_search_latch (const dict_index_t *index)
 

Detailed Description

The index tree adaptive search.

Created 2/17/1996 Heikki Tuuri

Function Documentation

◆ btr_get_search_latch()

static rw_lock_t * btr_get_search_latch ( const dict_index_t index)
inlinestatic

◆ btr_get_search_part()

static btr_search_sys_t::search_part_t & btr_get_search_part ( const dict_index_t index)
inlinestatic

◆ btr_search_hash_index_id()

static size_t btr_search_hash_index_id ( const dict_index_t index)
inlinestatic

◆ btr_search_info_update()

static void btr_search_info_update ( btr_cur_t cursor)
inlinestatic

◆ btr_search_info_update_slow()

void btr_search_info_update_slow ( btr_cur_t cursor)

Updates the search info statistics following a search in B-tree that was performed not using or not finding row with the AHI index.

It may decide to try to update the searched record on which the supplied cursor in positioned at, or add the whole page to AHI.

Parameters
[in]cursorcursor which was just positioned

◆ btr_search_own_all()

static bool btr_search_own_all ( ulint  mode)
inlinestatic

◆ btr_search_own_any()

static bool btr_search_own_any ( ulint  mode)
inlinestatic

◆ btr_search_s_lock()

static void btr_search_s_lock ( const dict_index_t index,
ut::Location  location 
)
inlinestatic

◆ btr_search_s_lock_all()

static void btr_search_s_lock_all ( ut::Location  location)
inlinestatic

◆ btr_search_s_lock_nowait()

static bool btr_search_s_lock_nowait ( const dict_index_t index,
ut::Location  location 
)
inlinestatic

◆ btr_search_s_unlock()

static void btr_search_s_unlock ( const dict_index_t index)
inlinestatic

◆ btr_search_s_unlock_all()

static void btr_search_s_unlock_all ( )
inlinestatic

◆ btr_search_x_lock()

static void btr_search_x_lock ( const dict_index_t index,
ut::Location  location 
)
inlinestatic

◆ btr_search_x_lock_all()

static void btr_search_x_lock_all ( ut::Location  location)
inlinestatic

◆ btr_search_x_lock_nowait()

static bool btr_search_x_lock_nowait ( const dict_index_t index,
ut::Location  location 
)
inlinestatic

◆ btr_search_x_unlock()

static void btr_search_x_unlock ( const dict_index_t index)
inlinestatic

◆ btr_search_x_unlock_all()

static void btr_search_x_unlock_all ( )
inlinestatic