MySQL 5.6.14 Source Code Document
|
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) |
Public Member Functions inherited from sys_var | |
sys_var (sys_var_chain *chain, const char *name_arg, const char *comment, int flag_args, ptrdiff_t off, int getopt_id, enum get_opt_arg_type getopt_arg_type, SHOW_TYPE show_val_type_arg, longlong def_val, PolyLock *lock, enum binlog_status_enum binlog_status_arg, on_check_function on_check_func, on_update_function on_update_func, const char *substitute, int parse_flag) | |
virtual void | cleanup () |
bool | check (THD *thd, set_var *var) |
uchar * | value_ptr (THD *thd, enum_var_type type, LEX_STRING *base) |
virtual void | update_default (longlong new_def_value) |
bool | set_default (THD *thd, set_var *var) |
bool | update (THD *thd, set_var *var) |
int | scope () const |
const CHARSET_INFO * | charset (THD *thd) |
bool | is_readonly () const |
bool | not_visible () const |
bool | is_struct () |
bool | is_written_to_binlog (enum_var_type type) |
bool | check_type (enum_var_type type) |
bool | register_option (std::vector< my_option > *array, int parse_flags) |
void | do_deprecated_warning (THD *thd) |
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 |
Public Attributes inherited from sys_var | |
sys_var * | next |
LEX_CSTRING | name |
enum sys_var::binlog_status_enum | binlog_status |
Additional Inherited Members | |
Public Types inherited from sys_var | |
enum | flag_enum { GLOBAL, SESSION, ONLY_SESSION, SCOPE_MASK = 1023, READONLY = 1024, ALLOCATED = 2048, INVISIBLE = 4096 } |
enum | binlog_status_enum { VARIABLE_NOT_IN_BINLOG, SESSION_VARIABLE_IN_BINLOG } |
Static Public Attributes inherited from sys_var | |
static const int | PARSE_EARLY = 1 |
static const int | PARSE_NORMAL = 2 |
Protected Types inherited from sys_var | |
typedef bool(* | on_check_function )(sys_var *self, THD *thd, set_var *var) |
typedef bool(* | on_update_function )(sys_var *self, THD *thd, enum_var_type type) |
Protected Member Functions inherited from sys_var | |
uchar * | session_var_ptr (THD *thd) |
uchar * | global_var_ptr () |
Protected Attributes inherited from sys_var | |
int | flags |
or'ed flag_enum values | |
int | m_parse_flag |
either PARSE_EARLY or PARSE_NORMAL. | |
const SHOW_TYPE | show_val_type |
what value_ptr() returns for sql_show.cc | |
my_option | option |
min, max, default values are stored here | |
PolyLock * | guard |
second lock that protects the variable | |
ptrdiff_t | offset |
offset to the value from global_system_variables | |
on_check_function | on_check |
on_update_function | on_update |
const char *const | deprecation_substitute |
bool | is_os_charset |
true if the value is in character_set_filesystem |
Definition at line 214 of file sql_plugin.cc.
|
inlinevirtual |
downcast for sys_var_pluginvar. Returns this if it's an instance of sys_var_pluginvar, and 0 otherwise.
Reimplemented from sys_var.
Definition at line 242 of file sql_plugin.cc.
|
inlinevirtual |
save the global default value of the variable in var
Implements sys_var.
Definition at line 254 of file sql_plugin.cc.
|
inlinevirtual |
save the session default value of the variable in var
Implements sys_var.
Definition at line 253 of file sql_plugin.cc.
|
inlinevirtual |
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.
Definition at line 248 of file sql_plugin.cc.
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.
Definition at line 226 of file sql_plugin.cc.