diff options
author | unknown <serg@serg.mylan> | 2006-01-07 14:41:57 +0100 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2006-01-07 14:41:57 +0100 |
commit | 031ee043fb88f033c430df1c3c1890f8ea40d7e8 (patch) | |
tree | 8e78176cd0cc3972339c3fdd16ca56c31ab3bcdb /sql/set_var.cc | |
parent | 88469c807ea8e4a7a45a4e47604f45c211a34d11 (diff) | |
download | mariadb-git-031ee043fb88f033c430df1c3c1890f8ea40d7e8.tar.gz |
WL#2935 - SHOW STATUS support in plugins
The patch adds DYNAMIC_ARRAY all_status_vars, which is now the
sole source of status information for SHOW STATUS. Status
variables can be added to and removed from the array dynamically.
SHOW STATUS command uses this array instead of static array
from mysqld.cc
Compatibility with the old, global list of status variables is
preserved in init_server_components(), where this global list is
simply appended to all_status_vars.
include/plugin.h:
WL#2935 - SHOW STATUS support in plugins
plugin/fulltext/plugin_example.c:
WL#2935 - SHOW STATUS support in plugins
example
sql/ha_innodb.cc:
s/struct show_var_st/SHOW_VAR/
sql/ha_innodb.h:
s/struct show_var_st/SHOW_VAR/
sql/mysql_priv.h:
WL#2935 - SHOW STATUS support in plugins
add_status_vars(), remove_status_vars()
sql/mysqld.cc:
bug: plugin_free must be called even with --skip-grants
add_status_vars()/free_status_vars(), remove unused SHOW_xxx_CONST
s/struct show_var_st/SHOW_VAR/
sql/set_var.cc:
s/struct show_var_st/SHOW_VAR/
sql/sql_parse.cc:
s/struct show_var_st/SHOW_VAR/
sql/sql_plugin.cc:
WL#2935 - SHOW STATUS support in plugins
sql/sql_plugin.h:
WL#2935 - SHOW STATUS support in plugins
sql/sql_show.cc:
WL#2935 - SHOW STATUS support in plugins
DYNAMIC_ARRAY all_status_vars, add_status_vars(), remove_status_vars()
s/struct show_var_st/SHOW_VAR/
sql/structs.h:
WL#2935 - SHOW STATUS support in plugins
SHOW STATUS definitions moved to include/plugin.h and sql_plugin.h
s/struct show_var_st/SHOW_VAR/
Diffstat (limited to 'sql/set_var.cc')
-rw-r--r-- | sql/set_var.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/set_var.cc b/sql/set_var.cc index dfd451442ca..377b4fd6f3f 100644 --- a/sql/set_var.cc +++ b/sql/set_var.cc @@ -624,7 +624,7 @@ sys_var_have_variable sys_have_row_based_replication("have_row_based_replication sys_var_const_str sys_license("license", STRINGIFY_ARG(LICENSE)); #ifdef HAVE_REPLICATION -static int show_slave_skip_errors(THD *thd, show_var_st *var, char *buff) +static int show_slave_skip_errors(THD *thd, SHOW_VAR *var, char *buff) { var->type=SHOW_CHAR; var->value= buff; @@ -667,7 +667,7 @@ static int show_slave_skip_errors(THD *thd, show_var_st *var, char *buff) Variables shown by SHOW variables in alphabetical order */ -struct show_var_st init_vars[]= { +SHOW_VAR init_vars[]= { {"auto_increment_increment", (char*) &sys_auto_increment_increment, SHOW_SYS}, {"auto_increment_offset", (char*) &sys_auto_increment_offset, SHOW_SYS}, {sys_automatic_sp_privileges.name,(char*) &sys_automatic_sp_privileges, SHOW_SYS}, |