diff options
author | unknown <nick@mysql.com> | 2002-10-24 17:46:14 -0600 |
---|---|---|
committer | unknown <nick@mysql.com> | 2002-10-24 17:46:14 -0600 |
commit | 458ced9f340a16845ee3f4ae12765e9992d6afcc (patch) | |
tree | cddfba9393a1edb985b2e059371f89d6a2abaabe /mysql-test/t/rpl_mystery22.test | |
parent | 27d11e85b234de7ec48d57d5720c9871654adb2f (diff) | |
download | mariadb-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_mystery22.test')
-rw-r--r-- | mysql-test/t/rpl_mystery22.test | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/mysql-test/t/rpl_mystery22.test b/mysql-test/t/rpl_mystery22.test index 5280cb360dd..d49f1a210f4 100644 --- a/mysql-test/t/rpl_mystery22.test +++ b/mysql-test/t/rpl_mystery22.test @@ -4,9 +4,7 @@ source include/master-slave.inc; # first, cause a duplicate key problem on the slave create table t1(n int auto_increment primary key); -save_master_pos; -connection slave; -sync_with_master; +sync_slave_with_master; insert into t1 values (2); connection master; insert into t1 values(NULL); @@ -16,11 +14,11 @@ connection slave; sleep 3; # there is no way around this sleep - we have to wait until # the slave tries to run the query, fails and aborts slave thread delete from t1 where n = 2; -slave start; +start slave; sync_with_master; #now the buggy slave would be confused on the offset but it can replicate #in order to make it break, we need to stop/start the slave one more time -slave stop; +stop slave; connection master; # to be able to really confuse the slave, we need some non-auto-increment # events in the log @@ -29,7 +27,7 @@ drop table t2; insert into t1 values(NULL); save_master_pos; connection slave; -slave start; +start slave; #now the truth comes out - if the slave is buggy, it will never sync because #the slave thread is not able to read events sync_with_master; @@ -37,7 +35,5 @@ select * from t1; #clean up connection master; drop table t1; -save_master_pos; -connection slave; -sync_with_master; +sync_slave_with_master; |