diff options
author | Nirbhay Choubey <nirbhay@mariadb.com> | 2015-06-05 11:43:05 -0400 |
---|---|---|
committer | Nirbhay Choubey <nirbhay@mariadb.com> | 2015-06-05 11:43:05 -0400 |
commit | 5255dafe2cc8ceb32cafd24a0b2de24332b24c98 (patch) | |
tree | 3aaeb668875a85281b72fa7503eaaa4cb6b6598c /sql/sys_vars.cc | |
parent | f7002c05ae4e4a09bc6859ccc568064cfd6bb268 (diff) | |
download | mariadb-git-bb-10.1-mdev7110.tar.gz |
MDEV-7110 : Add missing MySQL variable log_bin_basename and log_bin_indexbb-10.1-mdev7110
Add log_bin_index, log_bin_basename and relay_log_basename system
variables. Also, convert relay_log_index system variable to
NO_CMD_LINE and implement --relay-log-index as a command line
option.
Diffstat (limited to 'sql/sys_vars.cc')
-rw-r--r-- | sql/sys_vars.cc | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/sql/sys_vars.cc b/sql/sys_vars.cc index 88e5f1b392b..971040a670e 100644 --- a/sql/sys_vars.cc +++ b/sql/sys_vars.cc @@ -4170,10 +4170,37 @@ static Sys_var_charptr Sys_relay_log( READ_ONLY GLOBAL_VAR(opt_relay_logname), CMD_LINE(REQUIRED_ARG), IN_FS_CHARSET, DEFAULT(0)); +/* + Uses NO_CMD_LINE since the --relay-log-index option set + opt_relaylog_index_name variable and computes a value for the + relay_log_index variable. +*/ static Sys_var_charptr Sys_relay_log_index( "relay_log_index", "The location and name to use for the file " "that keeps a list of the last relay logs", - READ_ONLY GLOBAL_VAR(opt_relaylog_index_name), CMD_LINE(REQUIRED_ARG), + READ_ONLY GLOBAL_VAR(relay_log_index), NO_CMD_LINE, + IN_FS_CHARSET, DEFAULT(0)); + +/* + Uses NO_CMD_LINE since the --log-bin-index option set + opt_binlog_index_name variable and computes a value for the + log_bin_index variable. +*/ +static Sys_var_charptr Sys_binlog_index( + "log_bin_index", "File that holds the names for last binary log files.", + READ_ONLY GLOBAL_VAR(log_bin_index), NO_CMD_LINE, + IN_FS_CHARSET, DEFAULT(0)); + +static Sys_var_charptr Sys_relay_log_basename( + "relay_log_basename", + "The full path of the relay log file names, excluding the extension.", + READ_ONLY GLOBAL_VAR(relay_log_basename), NO_CMD_LINE, + IN_FS_CHARSET, DEFAULT(0)); + +static Sys_var_charptr Sys_log_bin_basename( + "log_bin_basename", + "The full path of the binary log file names, excluding the extension.", + READ_ONLY GLOBAL_VAR(log_bin_basename), NO_CMD_LINE, IN_FS_CHARSET, DEFAULT(0)); static Sys_var_charptr Sys_relay_log_info_file( |