1 # test case for BUG#4680 -- if there are extra files in the db directory
2 # dropping the db on the master causes replication problems
4 -- source include/master-slave.inc
8 drop database if exists mysqltest1;
10 create database mysqltest1;
11 create table mysqltest1.t1 (n int);
12 insert into mysqltest1.t1 values (1);
13 select * from mysqltest1.t1 into outfile 'mysqltest1/f1.txt';
14 create table mysqltest1.t2 (n int);
15 create table mysqltest1.t3 (n int);
18 drop database mysqltest1;
22 # test the branch of the code that deals with the query buffer overflow
28 eval create table mysqltest1.mysqltest_long_table_name$1 (n int);
35 drop database mysqltest1;
39 create table t1 (n int);
40 insert into t1 values (1234);
41 sync_slave_with_master;
52 # Remove the "extra" file created above
53 let $MYSQLD_DATADIR= `select @@datadir`;
54 remove_file $MYSQLD_DATADIR/mysqltest1/f1.txt;
58 drop database mysqltest1;
60 sync_slave_with_master;
62 --source include/rpl_end.inc