MySQL 8.0.29
Source Code Documentation
mi_static.cc File Reference
#include "storage/myisam/myisamdef.h"
#include <sys/types.h>
#include "my_compiler.h"
#include "my_inttypes.h"
#include "my_io.h"
#include "my_macros.h"
#include "my_psi_config.h"
#include "mysql/psi/mysql_memory.h"

Functions

static int always_valid (const char *filename)
 
void init_myisam_psi_keys ()
 

Variables

LISTmyisam_open_list = nullptr
 
uchar myisam_file_magic []
 
uchar myisam_pack_file_magic []
 
const char * myisam_log_filename = "myisam.log"
 
File myisam_log_file = -1
 
uint myisam_quick_table_bits = 9
 
ulong myisam_block_size = MI_KEY_BLOCK_LENGTH
 
bool myisam_flush = false
 
bool myisam_delay_key_write = false
 
bool myisam_single_user = false
 
ulong myisam_concurrent_insert = 0
 
ulonglong myisam_max_temp_length = MAX_FILE_SIZE
 
ulong myisam_data_pointer_size = 4
 
ulonglong myisam_mmap_size = SIZE_T_MAX
 
ulonglong myisam_mmap_used = 0
 
st_keycache_thread_var main_thread_keycache_var
 
thread_local st_keycache_thread_varkeycache_tls = nullptr
 
int(* myisam_test_invalid_symlink )(const char *filename) = always_valid
 
uint myisam_read_vec []
 
uint myisam_readnext_vec []
 
PSI_memory_key mi_key_memory_MYISAM_SHARE
 
PSI_memory_key mi_key_memory_MI_INFO
 
PSI_memory_key mi_key_memory_MI_INFO_ft1_to_ft2
 
PSI_memory_key mi_key_memory_MI_INFO_bulk_insert
 
PSI_memory_key mi_key_memory_record_buffer
 
PSI_memory_key mi_key_memory_FTB
 
PSI_memory_key mi_key_memory_FT_INFO
 
PSI_memory_key mi_key_memory_FTPARSER_PARAM
 
PSI_memory_key mi_key_memory_ft_memroot
 
PSI_memory_key mi_key_memory_ft_stopwords
 
PSI_memory_key mi_key_memory_MI_SORT_PARAM
 
PSI_memory_key mi_key_memory_MI_SORT_PARAM_wordroot
 
PSI_memory_key mi_key_memory_SORT_FT_BUF
 
PSI_memory_key mi_key_memory_SORT_KEY_BLOCKS
 
PSI_memory_key mi_key_memory_filecopy
 
PSI_memory_key mi_key_memory_SORT_INFO_buffer
 
PSI_memory_key mi_key_memory_MI_DECODE_TREE
 
PSI_memory_key mi_key_memory_MYISAM_SHARE_decode_tables
 
PSI_memory_key mi_key_memory_preload_buffer
 
PSI_memory_key mi_key_memory_stPageList_pages
 
PSI_memory_key mi_key_memory_keycache_thread_var
 
PSI_memory_key key_memory_QUEUE
 
PSI_mutex_key mi_key_mutex_MYISAM_SHARE_intern_lock
 
PSI_mutex_key mi_key_mutex_MI_SORT_INFO_mutex
 
PSI_mutex_key mi_key_mutex_MI_CHECK_print_msg
 
static PSI_mutex_info all_myisam_mutexes []
 
PSI_rwlock_key mi_key_rwlock_MYISAM_SHARE_key_root_lock
 
PSI_rwlock_key mi_key_rwlock_MYISAM_SHARE_mmap_lock
 
static PSI_rwlock_info all_myisam_rwlocks []
 
PSI_cond_key mi_key_cond_MI_SORT_INFO_cond
 
PSI_cond_key mi_keycache_thread_var_suspend
 
static PSI_cond_info all_myisam_conds []
 
PSI_file_key mi_key_file_datatmp
 
PSI_file_key mi_key_file_dfile
 
PSI_file_key mi_key_file_kfile
 
PSI_file_key mi_key_file_log
 
static PSI_file_info all_myisam_files []
 
PSI_thread_key mi_key_thread_find_all_keys
 
static PSI_thread_info all_myisam_threads []
 
static PSI_memory_info all_myisam_memory []
 

Function Documentation

◆ always_valid()

static int always_valid ( const char *  filename)
static

◆ init_myisam_psi_keys()

void init_myisam_psi_keys ( )

Variable Documentation

◆ all_myisam_conds

PSI_cond_info all_myisam_conds[]
static
Initial value:
= {
{&mi_key_cond_MI_SORT_INFO_cond, "MI_SORT_INFO::cond", 0, 0,
{&mi_keycache_thread_var_suspend, "keycache_thread_var::suspend", 0, 0,
#define PSI_DOCUMENT_ME
Definition: component_common.h:28
PSI_cond_key mi_key_cond_MI_SORT_INFO_cond
Definition: mi_static.cc:143
PSI_cond_key mi_keycache_thread_var_suspend
Definition: mi_static.cc:144

◆ all_myisam_files

PSI_file_info all_myisam_files[]
static
Initial value:
= {
{&mi_key_file_datatmp, "data_tmp", 0, 0, PSI_DOCUMENT_ME},
{&mi_key_file_dfile, "dfile", 0, 0, PSI_DOCUMENT_ME},
{&mi_key_file_kfile, "kfile", 0, 0, PSI_DOCUMENT_ME},
{&mi_key_file_log, "log", 0, 0, PSI_DOCUMENT_ME}}
PSI_file_key mi_key_file_kfile
Definition: mi_static.cc:154
PSI_file_key mi_key_file_datatmp
Definition: mi_static.cc:154
PSI_file_key mi_key_file_log
Definition: mi_static.cc:155
PSI_file_key mi_key_file_dfile
Definition: mi_static.cc:154

◆ all_myisam_memory

PSI_memory_info all_myisam_memory[]
static

◆ all_myisam_mutexes

PSI_mutex_info all_myisam_mutexes[]
static
Initial value:
= {
{&mi_key_mutex_MI_SORT_INFO_mutex, "MI_SORT_INFO::mutex", 0, 0,
{&mi_key_mutex_MYISAM_SHARE_intern_lock, "MYISAM_SHARE::intern_lock", 0, 0,
{&mi_key_mutex_MI_CHECK_print_msg, "MI_CHECK::print_msg", 0, 0,
PSI_mutex_key mi_key_mutex_MYISAM_SHARE_intern_lock
Definition: mi_static.cc:119
PSI_mutex_key mi_key_mutex_MI_CHECK_print_msg
Definition: mi_static.cc:120
PSI_mutex_key mi_key_mutex_MI_SORT_INFO_mutex
Definition: mi_static.cc:120

◆ all_myisam_rwlocks

PSI_rwlock_info all_myisam_rwlocks[]
static
Initial value:
= {
{&mi_key_rwlock_MYISAM_SHARE_key_root_lock, "MYISAM_SHARE::key_root_lock",
{&mi_key_rwlock_MYISAM_SHARE_mmap_lock, "MYISAM_SHARE::mmap_lock", 0, 0,
PSI_rwlock_key mi_key_rwlock_MYISAM_SHARE_key_root_lock
Definition: mi_static.cc:132
PSI_rwlock_key mi_key_rwlock_MYISAM_SHARE_mmap_lock
Definition: mi_static.cc:133

◆ all_myisam_threads

PSI_thread_info all_myisam_threads[]
static
Initial value:
"find_all_keys", "mi_all_keys",
PSI_thread_key mi_key_thread_find_all_keys
Definition: mi_static.cc:165

◆ key_memory_QUEUE

PSI_memory_key key_memory_QUEUE

◆ keycache_tls

thread_local st_keycache_thread_var* keycache_tls = nullptr

◆ main_thread_keycache_var

st_keycache_thread_var main_thread_keycache_var

◆ mi_key_cond_MI_SORT_INFO_cond

PSI_cond_key mi_key_cond_MI_SORT_INFO_cond

◆ mi_key_file_datatmp

PSI_file_key mi_key_file_datatmp

◆ mi_key_file_dfile

PSI_file_key mi_key_file_dfile

◆ mi_key_file_kfile

PSI_file_key mi_key_file_kfile

◆ mi_key_file_log

PSI_file_key mi_key_file_log

◆ mi_key_memory_filecopy

PSI_memory_key mi_key_memory_filecopy

◆ mi_key_memory_FT_INFO

PSI_memory_key mi_key_memory_FT_INFO

◆ mi_key_memory_ft_memroot

PSI_memory_key mi_key_memory_ft_memroot

◆ mi_key_memory_ft_stopwords

PSI_memory_key mi_key_memory_ft_stopwords

◆ mi_key_memory_FTB

PSI_memory_key mi_key_memory_FTB

◆ mi_key_memory_FTPARSER_PARAM

PSI_memory_key mi_key_memory_FTPARSER_PARAM

◆ mi_key_memory_keycache_thread_var

PSI_memory_key mi_key_memory_keycache_thread_var

◆ mi_key_memory_MI_DECODE_TREE

PSI_memory_key mi_key_memory_MI_DECODE_TREE

◆ mi_key_memory_MI_INFO

PSI_memory_key mi_key_memory_MI_INFO

◆ mi_key_memory_MI_INFO_bulk_insert

PSI_memory_key mi_key_memory_MI_INFO_bulk_insert

◆ mi_key_memory_MI_INFO_ft1_to_ft2

PSI_memory_key mi_key_memory_MI_INFO_ft1_to_ft2

◆ mi_key_memory_MI_SORT_PARAM

PSI_memory_key mi_key_memory_MI_SORT_PARAM

◆ mi_key_memory_MI_SORT_PARAM_wordroot

PSI_memory_key mi_key_memory_MI_SORT_PARAM_wordroot

◆ mi_key_memory_MYISAM_SHARE

PSI_memory_key mi_key_memory_MYISAM_SHARE

◆ mi_key_memory_MYISAM_SHARE_decode_tables

PSI_memory_key mi_key_memory_MYISAM_SHARE_decode_tables

◆ mi_key_memory_preload_buffer

PSI_memory_key mi_key_memory_preload_buffer

◆ mi_key_memory_record_buffer

PSI_memory_key mi_key_memory_record_buffer

◆ mi_key_memory_SORT_FT_BUF

PSI_memory_key mi_key_memory_SORT_FT_BUF

◆ mi_key_memory_SORT_INFO_buffer

PSI_memory_key mi_key_memory_SORT_INFO_buffer

◆ mi_key_memory_SORT_KEY_BLOCKS

PSI_memory_key mi_key_memory_SORT_KEY_BLOCKS

◆ mi_key_memory_stPageList_pages

PSI_memory_key mi_key_memory_stPageList_pages

◆ mi_key_mutex_MI_CHECK_print_msg

PSI_mutex_key mi_key_mutex_MI_CHECK_print_msg

◆ mi_key_mutex_MI_SORT_INFO_mutex

PSI_mutex_key mi_key_mutex_MI_SORT_INFO_mutex

◆ mi_key_mutex_MYISAM_SHARE_intern_lock

PSI_mutex_key mi_key_mutex_MYISAM_SHARE_intern_lock

◆ mi_key_rwlock_MYISAM_SHARE_key_root_lock

PSI_rwlock_key mi_key_rwlock_MYISAM_SHARE_key_root_lock

◆ mi_key_rwlock_MYISAM_SHARE_mmap_lock

PSI_rwlock_key mi_key_rwlock_MYISAM_SHARE_mmap_lock

◆ mi_key_thread_find_all_keys

PSI_thread_key mi_key_thread_find_all_keys

◆ mi_keycache_thread_var_suspend

PSI_cond_key mi_keycache_thread_var_suspend

◆ myisam_block_size

ulong myisam_block_size = MI_KEY_BLOCK_LENGTH

◆ myisam_concurrent_insert

ulong myisam_concurrent_insert = 0

◆ myisam_data_pointer_size

ulong myisam_data_pointer_size = 4

◆ myisam_delay_key_write

bool myisam_delay_key_write = false

◆ myisam_file_magic

uchar myisam_file_magic[]
Initial value:
= {
(uchar)254,
(uchar)254,
'\007',
'\001',
}
unsigned char uchar
Definition: my_inttypes.h:51

◆ myisam_flush

bool myisam_flush = false

◆ myisam_log_file

File myisam_log_file = -1

◆ myisam_log_filename

const char* myisam_log_filename = "myisam.log"

◆ myisam_max_temp_length

ulonglong myisam_max_temp_length = MAX_FILE_SIZE

◆ myisam_mmap_size

ulonglong myisam_mmap_size = SIZE_T_MAX

◆ myisam_mmap_used

ulonglong myisam_mmap_used = 0

◆ myisam_open_list

LIST* myisam_open_list = nullptr

◆ myisam_pack_file_magic

uchar myisam_pack_file_magic[]
Initial value:
= {
(uchar)254,
(uchar)254,
'\010',
'\002',
}

◆ myisam_quick_table_bits

uint myisam_quick_table_bits = 9

◆ myisam_read_vec

uint myisam_read_vec[]
Initial value:
#define SEARCH_SMALLER
Definition: my_base.h:1016
#define MBR_DISJOINT
Definition: my_base.h:1024
#define MBR_CONTAIN
Definition: my_base.h:1021
#define SEARCH_FIND
Definition: my_base.h:1012
#define SEARCH_BIGGER
Definition: my_base.h:1015
#define MBR_WITHIN
Definition: my_base.h:1023
#define SEARCH_LAST
Definition: my_base.h:1020
#define SEARCH_NO_FIND
Definition: my_base.h:1013
#define SEARCH_PREFIX
Definition: my_base.h:1019
#define MBR_INTERSECT
Definition: my_base.h:1022
#define MBR_EQUAL
Definition: my_base.h:1025

◆ myisam_readnext_vec

◆ myisam_single_user

bool myisam_single_user = false

◆ myisam_test_invalid_symlink

int(* myisam_test_invalid_symlink) (const char *filename) ( const char *  filename) = always_valid