diff options
author | guilhem@mysql.com <> | 2003-06-17 23:19:38 +0200 |
---|---|---|
committer | guilhem@mysql.com <> | 2003-06-17 23:19:38 +0200 |
commit | 4deb135b0b97399c79b386fa945e59468a1ea054 (patch) | |
tree | 0825c0f53219f2374436f0084dbdf2069f354e63 /mysql-test/t/rpl_rotate_logs.test | |
parent | 0a0ca19940aa5173688fc0374280dc0f320b1067 (diff) | |
download | mariadb-git-4deb135b0b97399c79b386fa945e59468a1ea054.tar.gz |
Changed change_master() to use ER_MASTER_INFO (better display).
Diffstat (limited to 'mysql-test/t/rpl_rotate_logs.test')
-rw-r--r-- | mysql-test/t/rpl_rotate_logs.test | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/mysql-test/t/rpl_rotate_logs.test b/mysql-test/t/rpl_rotate_logs.test index 9f7f44d7c28..c4dc5de38da 100644 --- a/mysql-test/t/rpl_rotate_logs.test +++ b/mysql-test/t/rpl_rotate_logs.test @@ -16,14 +16,20 @@ system cat /dev/null > var/slave-data/master.info; system chmod 000 var/slave-data/master.info; connection slave; drop table if exists t1, t2, t3, t4; +# START SLAVE will fail because it can't read the file (mode 000) (system error 13) --error 1201 slave start; system chmod 600 var/slave-data/master.info; +# It will fail again because the file is empty so the slave cannot get valuable +# info about how to connect to the master from it (failure in +# init_strvar_from_file() in init_master_info()). --error 1201 slave start; --replace_result 3306 MASTER_PORT 9306 MASTER_PORT 3334 MASTER_PORT 3336 MASTER_PORT -# Will get error 13 on Unix systems becasue file is not readable -!eval change master to master_host='127.0.0.1',master_port=$MASTER_MYPORT, master_user='root'; +# CHANGE MASTER will fail because it first parses master.info before changing it +# (so when master.info is bad, people have to use RESET SLAVE first). +--error 1201 +eval change master to master_host='127.0.0.1',master_port=$MASTER_MYPORT, master_user='root'; reset slave; --replace_result 3306 MASTER_PORT 9306 MASTER_PORT 3334 MASTER_PORT 3336 MASTER_PORT eval change master to master_host='127.0.0.1',master_port=$MASTER_MYPORT, master_user='root'; |