MySQL 8.0.31
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_search_t *info, 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 const btr_search_tbtr_search_get_info (const dict_index_t *index)
 
static btr_search_tbtr_search_get_info (dict_index_t *index)
 
static void btr_search_info_update (dict_index_t *index, 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_get_search_slot (const space_index_t index_id, const space_id_t space_id)
 
static rw_lock_tbtr_get_search_latch (const dict_index_t *index)
 
static hash_table_tbtr_get_search_table (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_slot()

static size_t btr_get_search_slot ( const space_index_t  index_id,
const space_id_t  space_id 
)
inlinestatic

◆ btr_get_search_table()

static hash_table_t * btr_get_search_table ( const dict_index_t index)
inlinestatic

◆ btr_search_get_info() [1/2]

static const btr_search_t * btr_search_get_info ( const dict_index_t index)
inlinestatic

◆ btr_search_get_info() [2/2]

static btr_search_t * btr_search_get_info ( dict_index_t index)
inlinestatic

◆ btr_search_info_update()

static void btr_search_info_update ( dict_index_t index,
btr_cur_t cursor 
)
inlinestatic

◆ btr_search_info_update_slow()

void btr_search_info_update_slow ( btr_search_t info,
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,out]infosearch info
[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