MySQL 8.3.0
Source Code Documentation
keycaches.cc File Reference
#include "sql/keycaches.h"
#include "my_dbug.h"
#include "mysys/mysys_priv.h"
#include "string_with_len.h"
#include "template_utils.h"

Functions

static ucharfind_named (I_List< NAMED_ILINK > *list, std::string_view name, NAMED_ILINK **found)
 
KEY_CACHEget_key_cache (std::string_view cache_name)
 Resolve a MyISAM Multiple Key Cache by name. More...
 
KEY_CACHEcreate_key_cache (std::string_view name)
 Create a MyISAM Multiple Key Cache. More...
 
KEY_CACHEget_or_create_key_cache (std::string_view name)
 Resolve an existent MyISAM Multiple Key Cache by name, otherwise create a new one. More...
 
bool process_key_caches (process_key_cache_t func)
 

Variables

NAMED_ILIST key_caches
 
const LEX_CSTRING default_key_cache_base = {STRING_WITH_LEN("default")}
 
KEY_CACHE zero_key_cache
 @nonexistent_cache.param->value_ptr() points here More...
 

Function Documentation

◆ create_key_cache()

KEY_CACHE * create_key_cache ( std::string_view  name)

Create a MyISAM Multiple Key Cache.

Parameters
nameCache name (case insensitive, system character set).

◆ find_named()

static uchar * find_named ( I_List< NAMED_ILINK > *  list,
std::string_view  name,
NAMED_ILINK **  found 
)
static

◆ get_key_cache()

KEY_CACHE * get_key_cache ( std::string_view  cache_name)

Resolve a MyISAM Multiple Key Cache by name.

Parameters
cache_nameCache name (case insensitive, system character set).
Returns
New key cache on success, otherwise nullptr.

◆ get_or_create_key_cache()

KEY_CACHE * get_or_create_key_cache ( std::string_view  name)

Resolve an existent MyISAM Multiple Key Cache by name, otherwise create a new one.

Parameters
nameCache name (case insensitive, system character set)
Returns
Key cache on success, otherwise nullptr.

◆ process_key_caches()

bool process_key_caches ( process_key_cache_t  func)

Variable Documentation

◆ default_key_cache_base

const LEX_CSTRING default_key_cache_base = {STRING_WITH_LEN("default")}

◆ key_caches

NAMED_ILIST key_caches

◆ zero_key_cache

KEY_CACHE zero_key_cache

@nonexistent_cache.param->value_ptr() points here