MDEV-7110 : Add missing MySQL variable log_bin_basename and log_bin_index

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.
This commit is contained in:
Nirbhay Choubey 2015-06-05 11:43:05 -04:00
commit f965cae5fb
35 changed files with 614 additions and 14 deletions

View file

@ -0,0 +1,9 @@
SHOW VARIABLES LIKE 'log_bin%';
Variable_name log_bin
Value ON
Variable_name log_bin_basename
Value MYSQLTEST_VARDIR/mysqld.1/data/other
Variable_name log_bin_index
Value MYSQLTEST_VARDIR/mysqld.1/data/mysqld-bin.index
Variable_name log_bin_trust_function_creators
Value ON

View file

@ -0,0 +1,9 @@
SHOW VARIABLES LIKE 'log_bin%';
Variable_name log_bin
Value ON
Variable_name log_bin_basename
Value MYSQLTEST_VARDIR/mysqld.1/data/other
Variable_name log_bin_index
Value MYSQLTEST_VARDIR/tmp/something.index
Variable_name log_bin_trust_function_creators
Value ON

View file

@ -0,0 +1,15 @@
SHOW VARIABLES LIKE 'relay_log%';
Variable_name relay_log
Value other-relay
Variable_name relay_log_basename
Value MYSQLTEST_VARDIR/mysqld.1/data/other-relay
Variable_name relay_log_index
Value MYSQLTEST_VARDIR/mysqld.1/data/mysqld-relay-bin.index
Variable_name relay_log_info_file
Value relay-log.info
Variable_name relay_log_purge
Value ON
Variable_name relay_log_recovery
Value OFF
Variable_name relay_log_space_limit
Value 0

View file

@ -0,0 +1,15 @@
SHOW VARIABLES LIKE 'relay_log%';
Variable_name relay_log
Value other-relay
Variable_name relay_log_basename
Value MYSQLTEST_VARDIR/mysqld.1/data/other-relay
Variable_name relay_log_index
Value MYSQLTEST_VARDIR/tmp/something-relay.index
Variable_name relay_log_info_file
Value relay-log.info
Variable_name relay_log_purge
Value ON
Variable_name relay_log_recovery
Value OFF
Variable_name relay_log_space_limit
Value 0

View file

@ -0,0 +1 @@
--log-bin=other

View file

@ -0,0 +1,4 @@
--source include/not_embedded.inc
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
--query_vertical SHOW VARIABLES LIKE 'log_bin%'

View file

@ -0,0 +1,2 @@
--log-bin=other
--log-bin-index=$MYSQLTEST_VARDIR/tmp/something.index

View file

@ -0,0 +1,4 @@
--source include/not_embedded.inc
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
--query_vertical SHOW VARIABLES LIKE 'log_bin%'

View file

@ -0,0 +1 @@
--relay-log=other-relay

View file

@ -0,0 +1,4 @@
--source include/not_embedded.inc
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
--query_vertical SHOW VARIABLES LIKE 'relay_log%'

View file

@ -0,0 +1,2 @@
--relay-log=other-relay
--relay-log-index=$MYSQLTEST_VARDIR/tmp/something-relay.index

View file

@ -0,0 +1,4 @@
--source include/not_embedded.inc
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
--query_vertical SHOW VARIABLES LIKE 'relay_log%'