MySQL  8.0.19
Source Code Documentation
Sys_var_keycache Class Reference

The class for keycache_* variables. More...

#include <sys_vars.h>

Inheritance diagram for Sys_var_keycache:
Sys_var_integer< T, ARGT, SHOWT, SIGNED >

Public Member Functions

 Sys_var_keycache (const char *name_arg, const char *comment, int flag_args, ptrdiff_t off, size_t size, CMD_LINE getopt, ulonglong min_val, ulonglong max_val, ulonglong def_val, uint block_size, PolyLock *lock, enum binlog_status_enum binlog_status_arg, on_check_function on_check_func, keycache_update_function on_update_func, const char *substitute=0)
 
bool global_update (THD *thd, set_var *var)
 
const ucharglobal_value_ptr (THD *thd, LEX_STRING *base)
 
- Public Member Functions inherited from Sys_var_integer< T, ARGT, SHOWT, SIGNED >
 Sys_var_integer (const char *name_arg, const char *comment, int flag_args, ptrdiff_t off, size_t size, CMD_LINE getopt, T min_val, T max_val, T def_val, uint block_size, PolyLock *lock=0, enum binlog_status_enum binlog_status_arg=VARIABLE_NOT_IN_BINLOG, on_check_function on_check_func=0, on_update_function on_update_func=0, const char *substitute=0, int parse_flag=PARSE_NORMAL)
 
bool do_check (THD *thd, set_var *var)
 
bool session_update (THD *thd, set_var *var)
 
bool global_update (THD *, set_var *var)
 
bool check_update_type (Item_result type)
 
void session_save_default (THD *thd, set_var *var)
 
void global_save_default (THD *, set_var *var)
 
void saved_value_to_string (THD *, set_var *var, char *def_val)
 

Private Attributes

keycache_update_function keycache_update
 

Detailed Description

The class for keycache_* variables.

Supports structured names, keycache_name.variable_name.

Class specific constructor arguments: everything derived from Sys_var_ulonglong

Backing store: ulonglong

Note
these variables can be only GLOBAL

Constructor & Destructor Documentation

◆ Sys_var_keycache()

Sys_var_keycache::Sys_var_keycache ( const char *  name_arg,
const char *  comment,
int  flag_args,
ptrdiff_t  off,
size_t  size,
CMD_LINE  getopt,
ulonglong  min_val,
ulonglong  max_val,
ulonglong  def_val,
uint  block_size,
PolyLock lock,
enum binlog_status_enum  binlog_status_arg,
on_check_function  on_check_func,
keycache_update_function  on_update_func,
const char *  substitute = 0 
)
inline

Member Function Documentation

◆ global_update()

bool Sys_var_keycache::global_update ( THD thd,
set_var var 
)
inline

Abort if some other thread is changing the key cache

◆ global_value_ptr()

const uchar* Sys_var_keycache::global_value_ptr ( THD thd,
LEX_STRING base 
)
inline

Member Data Documentation

◆ keycache_update

keycache_update_function Sys_var_keycache::keycache_update
private

The documentation for this class was generated from the following file: