My Project
|
Public Member Functions | |
sys_var_pluginvar (sys_var_chain *chain, const char *name_arg, struct st_mysql_sys_var *plugin_var_arg) | |
sys_var_pluginvar * | cast_pluginvar () |
bool | check_update_type (Item_result type) |
SHOW_TYPE | show_type () |
uchar * | real_value_ptr (THD *thd, enum_var_type type) |
TYPELIB * | plugin_var_typelib (void) |
uchar * | do_value_ptr (THD *thd, enum_var_type type, LEX_STRING *base) |
uchar * | session_value_ptr (THD *thd, LEX_STRING *base) |
uchar * | global_value_ptr (THD *thd, LEX_STRING *base) |
bool | do_check (THD *thd, set_var *var) |
virtual void | session_save_default (THD *thd, set_var *var) |
virtual void | global_save_default (THD *thd, set_var *var) |
bool | session_update (THD *thd, set_var *var) |
bool | global_update (THD *thd, set_var *var) |
Static Public Member Functions | |
static void * | operator new (size_t size, MEM_ROOT *mem_root) |
static void | operator delete (void *ptr_arg, size_t size) |
Public Attributes | |
struct st_plugin_int * | plugin |
struct st_mysql_sys_var * | plugin_var |
const char * | orig_pluginvar_name |
sys_var_pluginvar* sys_var_pluginvar::cast_pluginvar | ( | ) | [inline, virtual] |
downcast for sys_var_pluginvar. Returns this if it's an instance of sys_var_pluginvar, and 0 otherwise.
Reimplemented from sys_var.
virtual void sys_var_pluginvar::global_save_default | ( | THD * | thd, |
set_var * | var | ||
) | [inline, virtual] |
save the global default value of the variable in var
Implements sys_var.
virtual void sys_var_pluginvar::session_save_default | ( | THD * | thd, |
set_var * | var | ||
) | [inline, virtual] |
save the session default value of the variable in var
Implements sys_var.
uchar* sys_var_pluginvar::session_value_ptr | ( | THD * | thd, |
LEX_STRING * | base | ||
) | [inline, virtual] |
A pointer to a value of the variable for SHOW. It must be of show_val_type type (bool for SHOW_BOOL, int for SHOW_INT, longlong for SHOW_LONGLONG, etc).
Reimplemented from sys_var.
const char* sys_var_pluginvar::orig_pluginvar_name |
variable name from whatever is hard-coded in the plugin source and doesn't have pluginname- prefix is replaced by an allocated name with a plugin prefix. When plugin is uninstalled we need to restore the pointer to point to the hard-coded value, because plugin may be installed/uninstalled many times without reloading the shared object.