summaryrefslogtreecommitdiff
path: root/mysql-test/t/rpl_log_pos.test
diff options
context:
space:
mode:
authorunknown <nick@mysql.com>2002-10-24 17:46:14 -0600
committerunknown <nick@mysql.com>2002-10-24 17:46:14 -0600
commit458ced9f340a16845ee3f4ae12765e9992d6afcc (patch)
treecddfba9393a1edb985b2e059371f89d6a2abaabe /mysql-test/t/rpl_log_pos.test
parent27d11e85b234de7ec48d57d5720c9871654adb2f (diff)
downloadmariadb-git-458ced9f340a16845ee3f4ae12765e9992d6afcc.tar.gz
altered syntax from SLAVE START|STOP to START|STOP SLAVE
mysql-test/mysql-test-run.sh: Added --rpl option which tests all t/rpl*.test tests.
Diffstat (limited to 'mysql-test/t/rpl_log_pos.test')
-rw-r--r--mysql-test/t/rpl_log_pos.test16
1 files changed, 6 insertions, 10 deletions
diff --git a/mysql-test/t/rpl_log_pos.test b/mysql-test/t/rpl_log_pos.test
index b96d32c7fca..d320796edd3 100644
--- a/mysql-test/t/rpl_log_pos.test
+++ b/mysql-test/t/rpl_log_pos.test
@@ -3,25 +3,23 @@
#
source include/master-slave.inc;
show master status;
-save_master_pos;
-connection slave;
-sync_with_master;
+sync_slave_with_master;
--replace_result 3306 MASTER_PORT 9306 MASTER_PORT 3334 MASTER_PORT 3336 MASTER_PORT
show slave status;
change master to master_log_pos=73;
sleep 5;
-slave stop;
+stop slave;
change master to master_log_pos=73;
--replace_result 3306 MASTER_PORT 9306 MASTER_PORT 3334 MASTER_PORT 3336 MASTER_PORT
show slave status;
-slave start;
+start slave;
sleep 5;
--replace_result 3306 MASTER_PORT 9306 MASTER_PORT 3334 MASTER_PORT 3336 MASTER_PORT
show slave status;
change master to master_log_pos=173;
--replace_result 3306 MASTER_PORT 9306 MASTER_PORT 3334 MASTER_PORT 3336 MASTER_PORT
-slave start;
+start slave;
sleep 2;
--replace_result 3306 MASTER_PORT 9306 MASTER_PORT 3334 MASTER_PORT 3336 MASTER_PORT
show slave status;
@@ -34,11 +32,9 @@ insert into t1 values (1),(2),(3);
save_master_pos;
connection slave;
change master to master_log_pos=79;
-slave start;
+start slave;
sync_with_master;
select * from t1;
connection master;
drop table t1;
-save_master_pos;
-connection slave;
-sync_with_master;
+sync_slave_with_master;