summaryrefslogtreecommitdiff
path: root/sql/set_var.cc
diff options
context:
space:
mode:
authorgluh@mysql.com/eagle.(none) <>2007-10-10 12:21:11 +0500
committergluh@mysql.com/eagle.(none) <>2007-10-10 12:21:11 +0500
commita5e7b726c1840190d5e90854d2a4838fad68729f (patch)
tree52eae641d9b2a7de963b90792a12f948caf46e86 /sql/set_var.cc
parent91a7fbc8bbf0732937d0e9486424de6704df587a (diff)
downloadmariadb-git-a5e7b726c1840190d5e90854d2a4838fad68729f.tar.gz
Bug#28893 --relay-log variable is not exposed with SHOW VARIABLES
added variables relay_log, relay_log_index, relay_log_info_file to init_vars[] to make them visible within SHOW VARIABLES
Diffstat (limited to 'sql/set_var.cc')
-rw-r--r--sql/set_var.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/set_var.cc b/sql/set_var.cc
index e1246617d84..fbfe174434d 100644
--- a/sql/set_var.cc
+++ b/sql/set_var.cc
@@ -1040,6 +1040,9 @@ struct show_var_st init_vars[]= {
{sys_readonly.name, (char*) &sys_readonly, SHOW_SYS},
{sys_read_rnd_buff_size.name,(char*) &sys_read_rnd_buff_size, SHOW_SYS},
#ifdef HAVE_REPLICATION
+ {"relay_log" , (char*) &opt_relay_logname, SHOW_CHAR_PTR},
+ {"relay_log_index", (char*) &opt_relaylog_index_name, SHOW_CHAR_PTR},
+ {"relay_log_info_file", (char*) &relay_log_info_file, SHOW_CHAR_PTR},
{sys_relay_log_purge.name, (char*) &sys_relay_log_purge, SHOW_SYS},
{"relay_log_space_limit", (char*) &relay_log_space_limit, SHOW_LONGLONG},
#endif