diff options
author | timour@mysql.com <> | 2004-11-25 13:25:35 +0200 |
---|---|---|
committer | timour@mysql.com <> | 2004-11-25 13:25:35 +0200 |
commit | f1e86036eeab7c5fec0faa1fae6cf0bfc1f9ad43 (patch) | |
tree | b06a0495934dc459a552dadc38cb32f6c43114da /mysql-test | |
parent | 38ab93c6befaca29e2fc36f0f24ce2d1e464550b (diff) | |
parent | fe0911e95eeaca38350ecaa227b1d93ccf20db53 (diff) | |
download | mariadb-git-f1e86036eeab7c5fec0faa1fae6cf0bfc1f9ad43.tar.gz |
Merge mysql.com:/home/timka/mysql/src/4.0-virgin
into mysql.com:/home/timka/mysql/src/4.0-master
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/rpl_start_stop_slave.result | 12 | ||||
-rw-r--r-- | mysql-test/t/rpl_start_stop_slave.test | 34 |
2 files changed, 46 insertions, 0 deletions
diff --git a/mysql-test/r/rpl_start_stop_slave.result b/mysql-test/r/rpl_start_stop_slave.result new file mode 100644 index 00000000000..1b4d87124d1 --- /dev/null +++ b/mysql-test/r/rpl_start_stop_slave.result @@ -0,0 +1,12 @@ +slave stop; +drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; +reset master; +reset slave; +drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; +slave start; +stop slave; +create table t1(n int); +start slave; +stop slave io_thread; +start slave io_thread; +drop table t1; diff --git a/mysql-test/t/rpl_start_stop_slave.test b/mysql-test/t/rpl_start_stop_slave.test new file mode 100644 index 00000000000..903ff204194 --- /dev/null +++ b/mysql-test/t/rpl_start_stop_slave.test @@ -0,0 +1,34 @@ +source include/master-slave.inc; + +# +# Bug#6148 () +# +connection slave; +stop slave; + +# Let the master do lots of insertions +connection master; +create table t1(n int); +let $1=5000; +disable_query_log; +while ($1) +{ + eval insert into t1 values($1); + dec $1; +} +enable_query_log; +save_master_pos; + +connection slave; +start slave; +sleep 1; +stop slave io_thread; +start slave io_thread; +sync_with_master; + +connection master; +drop table t1; +save_master_pos; + +connection slave; +sync_with_master; |