mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
ec657e8d2a
in the database directory on the master mysql-test/r/rpl_drop_db.result: New BitKeeper file ``mysql-test/r/rpl_drop_db.result'' mysql-test/t/rpl_drop_db.test: New BitKeeper file ``mysql-test/t/rpl_drop_db.test''
39 lines
777 B
Text
39 lines
777 B
Text
# test case for BUG#4680 -- if there are extra files in the db directory
|
|
# dropping the db on the master causes replication problems
|
|
|
|
-- source include/master-slave.inc
|
|
connection master;
|
|
|
|
--disable_warnings
|
|
drop database if exists d1;
|
|
--enable_warnings
|
|
create database d1;
|
|
create table d1.t1 (n int);
|
|
insert into d1.t1 values (1);
|
|
select * from d1.t1 into outfile 'd1/f1.txt';
|
|
create table d1.t2 (n int);
|
|
create table d1.t3 (n int);
|
|
--error 1010
|
|
drop database d1;
|
|
use d1;
|
|
show tables;
|
|
use test;
|
|
create table t1 (n int);
|
|
insert into t1 values (1234);
|
|
sync_slave_with_master;
|
|
|
|
connection slave;
|
|
use d1;
|
|
show tables;
|
|
use test;
|
|
select * from t1;
|
|
|
|
connection master;
|
|
drop table t1;
|
|
sync_slave_with_master;
|
|
|
|
#cleanup
|
|
connection slave;
|
|
stop slave;
|
|
system rm -rf var/master-data/d1;
|
|
|