summaryrefslogtreecommitdiff
path: root/sql/set_var.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2014-08-29 13:59:08 +0200
committerSergei Golubchik <serg@mariadb.org>2014-10-10 22:27:41 +0200
commit5389300f49dd43af8dcf05dae52c1890abed25f6 (patch)
treee1fb4a75ebd82210e1495e994ed286d34f033b9a /sql/set_var.cc
parent99677cc510df14440958a784195679eedb5788a2 (diff)
downloadmariadb-git-5389300f49dd43af8dcf05dae52c1890abed25f6.tar.gz
cleanup: option_type -> scope
Diffstat (limited to 'sql/set_var.cc')
-rw-r--r--sql/set_var.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/set_var.cc b/sql/set_var.cc
index bc3e5235bba..1510f3a6c5e 100644
--- a/sql/set_var.cc
+++ b/sql/set_var.cc
@@ -565,7 +565,7 @@ static int show_cmp(SHOW_VAR *a, SHOW_VAR *b)
@param thd current thread
@param sorted If TRUE, the system variables should be sorted
- @param type OPT_GLOBAL or OPT_SESSION for SHOW GLOBAL|SESSION VARIABLES
+ @param scope OPT_GLOBAL or OPT_SESSION for SHOW GLOBAL|SESSION VARIABLES
@retval
pointer Array of SHOW_VAR elements for display
@@ -573,7 +573,7 @@ static int show_cmp(SHOW_VAR *a, SHOW_VAR *b)
NULL FAILURE
*/
-SHOW_VAR* enumerate_sys_vars(THD *thd, bool sorted, enum enum_var_type type)
+SHOW_VAR* enumerate_sys_vars(THD *thd, bool sorted, enum enum_var_type scope)
{
int count= system_variable_hash.records, i;
int size= sizeof(SHOW_VAR) * (count + 1);
@@ -588,7 +588,7 @@ SHOW_VAR* enumerate_sys_vars(THD *thd, bool sorted, enum enum_var_type type)
sys_var *var= (sys_var*) my_hash_element(&system_variable_hash, i);
// don't show session-only variables in SHOW GLOBAL VARIABLES
- if (type == OPT_GLOBAL && var->check_type(type))
+ if (scope == OPT_GLOBAL && var->check_type(scope))
continue;
show->name= var->name.str;