MySQL 9.1.0
Source Code Documentation
my_static.cc File Reference

Static variables for mysys library. More...

#include "mysys/my_static.h"
#include "my_config.h"
#include <stdarg.h>
#include <stddef.h>
#include "my_compiler.h"
#include "mysql/components/services/bits/psi_bits.h"
#include "mysql/my_loglevel.h"
#include "mysql/psi/mysql_cond.h"
#include "mysql/psi/mysql_mutex.h"
#include "mysql/psi/psi_memory.h"
#include "mysql/psi/psi_stage.h"
#include "mysys/mysys_priv.h"

Namespaces

namespace  file_info
 

Functions

static void enter_cond_dummy (void *a, mysql_cond_t *b, mysql_mutex_t *c, const PSI_stage_info *d, PSI_stage_info *e, const char *f, const char *g, int h)
 
static void exit_cond_dummy (void *a, const PSI_stage_info *b, const char *c, const char *d, int e)
 
static void enter_stage_dummy (void *a, const PSI_stage_info *b, PSI_stage_info *c, const char *d, const char *e, int f)
 
static void set_waiting_for_disk_space_dummy (void *a, bool b)
 
static int is_killed_dummy (const void *a)
 

Variables

constexpr uint ONCE_ALLOC_INIT = 4096 - MALLOC_OVERHEAD
 
PSI_memory_key key_memory_charset_loader
 
PSI_memory_key key_memory_lf_node
 
PSI_memory_key key_memory_lf_dynarray
 
PSI_memory_key key_memory_lf_slist
 
PSI_memory_key key_memory_LIST
 
PSI_memory_key key_memory_IO_CACHE
 
PSI_memory_key key_memory_KEY_CACHE
 
PSI_memory_key key_memory_SAFE_HASH_ENTRY
 
PSI_memory_key key_memory_MY_BITMAP_bitmap
 
PSI_memory_key key_memory_my_compress_alloc
 
PSI_memory_key key_memory_my_err_head
 
PSI_memory_key key_memory_my_file_info
 
PSI_memory_key key_memory_max_alloca
 
PSI_memory_key key_memory_MY_DIR
 
PSI_memory_key key_memory_MY_TMPDIR_full_list
 
PSI_memory_key key_memory_DYNAMIC_STRING
 
PSI_memory_key key_memory_TREE
 
PSI_thread_key key_thread_timer_notifier
 
char * home_dir = nullptr
 
const char * my_progname = nullptr
 
char curr_dir [FN_REFLEN] = {0}
 
char home_dir_buff [FN_REFLEN] = {0}
 
ulong my_tmp_file_created = 0
 
ulong my_stream_opened = 0
 
ulong my_file_opened = 0
 
ulong my_file_total_opened = 0
 
int my_umask = 0664
 
int my_umask_dir = 0777
 
ulong my_default_record_cache_size = RECORD_CACHE_SIZE
 
USED_MEMmy_once_root_block = nullptr
 
uint my_once_extra = ONCE_ALLOC_INIT
 
std::atomic< ErrorHandlerFunctionPointererror_handler_hook {my_message_stderr}
 
void(* local_message_hook )(enum loglevel ll, uint ecode, va_list args) = my_message_local_stderr
 
void(* enter_cond_hook )(void *, mysql_cond_t *, mysql_mutex_t *, const PSI_stage_info *, PSI_stage_info *, const char *, const char *, int) = enter_cond_dummy
 
void(* exit_cond_hook )(void *, const PSI_stage_info *, const char *, const char *, int) = exit_cond_dummy
 
void(* enter_stage_hook )(void *, const PSI_stage_info *, PSI_stage_info *, const char *, const char *, int) = enter_stage_dummy
 
void(* set_waiting_for_disk_space_hook )(void *, bool)
 
int(* is_killed_hook )(const void *) = is_killed_dummy
 
bool my_disable_locking = false
 
bool my_enable_symlinks = false
 

Detailed Description

Static variables for mysys library.

All defined here for easy making of a shared library.

Function Documentation

◆ enter_cond_dummy()

static void enter_cond_dummy ( void *  a,
mysql_cond_t b,
mysql_mutex_t c,
const PSI_stage_info d,
PSI_stage_info e,
const char *  f,
const char *  g,
int  h 
)
static

◆ enter_stage_dummy()

static void enter_stage_dummy ( void *  a,
const PSI_stage_info b,
PSI_stage_info c,
const char *  d,
const char *  e,
int  f 
)
static

◆ exit_cond_dummy()

static void exit_cond_dummy ( void *  a,
const PSI_stage_info b,
const char *  c,
const char *  d,
int  e 
)
static

◆ is_killed_dummy()

static int is_killed_dummy ( const void *  a)
static

◆ set_waiting_for_disk_space_dummy()

static void set_waiting_for_disk_space_dummy ( void *  a,
bool  b 
)
static

Variable Documentation

◆ curr_dir

char curr_dir[FN_REFLEN] = {0}

◆ home_dir_buff

char home_dir_buff[FN_REFLEN] = {0}

◆ key_memory_charset_loader

PSI_memory_key key_memory_charset_loader

◆ key_memory_DYNAMIC_STRING

PSI_memory_key key_memory_DYNAMIC_STRING

◆ key_memory_IO_CACHE

PSI_memory_key key_memory_IO_CACHE

◆ key_memory_KEY_CACHE

PSI_memory_key key_memory_KEY_CACHE

◆ key_memory_lf_dynarray

PSI_memory_key key_memory_lf_dynarray

◆ key_memory_lf_node

PSI_memory_key key_memory_lf_node

◆ key_memory_lf_slist

PSI_memory_key key_memory_lf_slist

◆ key_memory_LIST

PSI_memory_key key_memory_LIST

◆ key_memory_MY_BITMAP_bitmap

PSI_memory_key key_memory_MY_BITMAP_bitmap

◆ key_memory_my_compress_alloc

PSI_memory_key key_memory_my_compress_alloc

◆ key_memory_MY_DIR

PSI_memory_key key_memory_MY_DIR

◆ key_memory_my_err_head

PSI_memory_key key_memory_my_err_head

◆ key_memory_my_file_info

PSI_memory_key key_memory_my_file_info

◆ key_memory_MY_TMPDIR_full_list

PSI_memory_key key_memory_MY_TMPDIR_full_list

◆ key_memory_SAFE_HASH_ENTRY

PSI_memory_key key_memory_SAFE_HASH_ENTRY

◆ key_memory_TREE

PSI_memory_key key_memory_TREE

◆ key_thread_timer_notifier

PSI_thread_key key_thread_timer_notifier

◆ my_enable_symlinks

bool my_enable_symlinks = false

◆ my_once_extra

uint my_once_extra = ONCE_ALLOC_INIT

◆ my_once_root_block

USED_MEM* my_once_root_block = nullptr

◆ ONCE_ALLOC_INIT

constexpr uint ONCE_ALLOC_INIT = 4096 - MALLOC_OVERHEAD
constexpr