summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <sasha@mysql.sashanet.com>2001-10-10 15:36:35 -0600
committerunknown <sasha@mysql.sashanet.com>2001-10-10 15:36:35 -0600
commit6b648e4b1344391659b7be10c45c7fb71cb8e17d (patch)
tree2143fd43b5532ceec7d6fb7e900d5119ca3a61ec /mysql-test
parentb9578dba1f8521a22cdf73d6c3fa20ef4bc11de0 (diff)
downloadmariadb-git-6b648e4b1344391659b7be10c45c7fb71cb8e17d.tar.gz
got the last changeset to compile/run
mysqltest can run without connecting to the manager for tests that do not require manager operations client/mysqltest.c: make mysqltest work without having to connect to the manager mysql-test/mysql-test-run.sh: init-rpl-role option to servers pass manager-host to mysqltest mysql-test/r/rpl_failsafe.result: updated result mysql-test/t/rpl_failsafe.test: check for Rpl_status sql/mysqld.cc: fixed bad merge sql/repl_failsafe.cc: fixed bug sql/repl_failsafe.h: fixed compile error sql/sql_show.cc: fixed compile error
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/mysql-test-run.sh9
-rw-r--r--mysql-test/r/rpl_failsafe.result12
-rw-r--r--mysql-test/t/rpl_failsafe.test4
3 files changed, 21 insertions, 4 deletions
diff --git a/mysql-test/mysql-test-run.sh b/mysql-test/mysql-test-run.sh
index 733dfebd450..8f824d82a08 100644
--- a/mysql-test/mysql-test-run.sh
+++ b/mysql-test/mysql-test-run.sh
@@ -538,7 +538,8 @@ start_manager()
$MYSQL_MANAGER --log=$MYSQL_MANAGER_LOG --port=$MYSQL_MANAGER_PORT \
--password-file=$MYSQL_MANAGER_PW_FILE
abort_if_failed "Could not start MySQL manager"
- mysqltest_manager_args="--manager-user=$MYSQL_MANAGER_USER \
+ mysqltest_manager_args="--manager-host=localhost \
+ --manager-user=$MYSQL_MANAGER_USER \
--manager-password=$MYSQL_MANAGER_PW \
--manager-port=$MYSQL_MANAGER_PORT \
--manager-wait-timeout=$START_WAIT_TIMEOUT"
@@ -600,7 +601,7 @@ start_master()
then
master_args="--no-defaults --log-bin=$MYSQL_TEST_DIR/var/log/master-bin \
--server-id=1 --rpl-recovery-rank=1 \
- --basedir=$MY_BASEDIR \
+ --basedir=$MY_BASEDIR --init-rpl-role=master \
--port=$MASTER_MYPORT \
--exit-info=256 \
--datadir=$MASTER_MYDDIR \
@@ -617,7 +618,7 @@ start_master()
else
master_args="--no-defaults --log-bin=$MYSQL_TEST_DIR/var/log/master-bin \
--server-id=1 --rpl-recovery-rank=1 \
- --basedir=$MY_BASEDIR \
+ --basedir=$MY_BASEDIR --init-rpl-role=master \
--port=$MASTER_MYPORT \
--datadir=$MASTER_MYDDIR \
--pid-file=$MASTER_MYPID \
@@ -712,7 +713,7 @@ start_slave()
--socket=$slave_sock \
--character-sets-dir=$CHARSETSDIR \
--default-character-set=$CHARACTER_SET \
- --core \
+ --core --init-rpl-role=slave \
--tmpdir=$MYSQL_TMP_DIR \
--language=$LANGUAGE \
--skip-innodb --skip-slave-start \
diff --git a/mysql-test/r/rpl_failsafe.result b/mysql-test/r/rpl_failsafe.result
index 3f36bf8b83a..596d6ef7191 100644
--- a/mysql-test/r/rpl_failsafe.result
+++ b/mysql-test/r/rpl_failsafe.result
@@ -6,12 +6,24 @@ slave start;
show variables like 'rpl_recovery_rank';
Variable_name Value
rpl_recovery_rank 1
+show status like 'Rpl_status';
+Variable_name Value
+Rpl_status AUTH_MASTER
show variables like 'rpl_recovery_rank';
Variable_name Value
rpl_recovery_rank 2
+show status like 'Rpl_status';
+Variable_name Value
+Rpl_status IDLE_SLAVE
show variables like 'rpl_recovery_rank';
Variable_name Value
rpl_recovery_rank 3
+show status like 'Rpl_status';
+Variable_name Value
+Rpl_status IDLE_SLAVE
show variables like 'rpl_recovery_rank';
Variable_name Value
rpl_recovery_rank 4
+show status like 'Rpl_status';
+Variable_name Value
+Rpl_status IDLE_SLAVE
diff --git a/mysql-test/t/rpl_failsafe.test b/mysql-test/t/rpl_failsafe.test
index 75f1c9ee3b2..f93dbf4b118 100644
--- a/mysql-test/t/rpl_failsafe.test
+++ b/mysql-test/t/rpl_failsafe.test
@@ -3,9 +3,13 @@ connect (slave_sec,localhost,root,,test,0,slave.sock-1);
connect (slave_ter,localhost,root,,test,0,slave.sock-2);
connection master;
show variables like 'rpl_recovery_rank';
+show status like 'Rpl_status';
connection slave;
show variables like 'rpl_recovery_rank';
+show status like 'Rpl_status';
connection slave_sec;
show variables like 'rpl_recovery_rank';
+show status like 'Rpl_status';
connection slave_ter;
show variables like 'rpl_recovery_rank';
+show status like 'Rpl_status';