mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
1bd50ced73
- Add missing drop(s) - Reset changed variables NOTE! These kind of problems are easily found with --check-testcases options to mysql-test-run.pl mysql-test/extra/rpl_tests/rpl_insert_id_pk.test: Add missing drop table mysql-test/extra/rpl_tests/rpl_loaddata.test: Add missing drop table mysql-test/extra/rpl_tests/rpl_log.test: Tables where only dropped on slave, switch to master connection before dropping them mysql-test/extra/rpl_tests/rpl_multi_update3.test: Add missing drop table mysql-test/extra/rpl_tests/rpl_row_sp006.test: Add missing drop database mysql-test/include/check-testcase.test: Add option "--skip-lock-tables" when dumping tables, as noone else is using the tables anyway mysql-test/r/ndb_cache_multi.result: Reset query_cache_size after test on both master and "second" master mysqld mysql-test/r/partition.result: Add missing drop procedure mysql-test/r/rpl_drop_db.result: Add missing drop table mysql-test/r/rpl_multi_update3.result: Add missing drop table mysql-test/r/rpl_ndb_multi_update3.result: Add missing drop table mysql-test/r/rpl_ndb_sp006.result: Add missing drop database mysql-test/r/rpl_stm_no_op.result: Add missing drop table mysql-test/r/rpl_variables.result: Reset slave_net_timeout to it's default value after test mysql-test/t/ndb_cache_multi.test: Reset query_cahche_size after test mysql-test/t/partition.test: Add missing drop procedure mysql-test/t/rpl_drop_db.test: Add missing drop table mysql-test/t/rpl_stm_no_op.test: Add missing drop table mysql-test/t/rpl_variables.test: Reset slave_net_timeout to it's default value after test
62 lines
1.3 KiB
Text
62 lines
1.3 KiB
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 mysqltest1;
|
|
--enable_warnings
|
|
create database mysqltest1;
|
|
create table mysqltest1.t1 (n int);
|
|
insert into mysqltest1.t1 values (1);
|
|
select * from mysqltest1.t1 into outfile 'mysqltest1/f1.txt';
|
|
create table mysqltest1.t2 (n int);
|
|
create table mysqltest1.t3 (n int);
|
|
--replace_result \\ /
|
|
--error 1010
|
|
drop database mysqltest1;
|
|
use mysqltest1;
|
|
show tables;
|
|
|
|
# test the branch of the code that deals with the query buffer overflow
|
|
|
|
--disable_query_log
|
|
let $1=50;
|
|
while ($1)
|
|
{
|
|
eval create table mysqltest1.mysqltest_long_table_name$1 (n int);
|
|
dec $1;
|
|
}
|
|
--enable_query_log
|
|
|
|
--replace_result \\ /
|
|
--error 1010
|
|
drop database mysqltest1;
|
|
use mysqltest1;
|
|
show tables;
|
|
use test;
|
|
create table t1 (n int);
|
|
insert into t1 values (1234);
|
|
sync_slave_with_master;
|
|
|
|
connection slave;
|
|
use mysqltest1;
|
|
show tables;
|
|
use test;
|
|
select * from t1;
|
|
|
|
system rm $MYSQLTEST_VARDIR/master-data/mysqltest1/f1.txt;
|
|
connection master;
|
|
DROP DATABASE mysqltest1;
|
|
sync_slave_with_master;
|
|
|
|
#cleanup
|
|
connection slave;
|
|
stop slave;
|
|
#system rm -rf $MYSQLTEST_VARDIR/master-data/mysqltest1;
|
|
|
|
connection master;
|
|
use test;
|
|
drop table t1;
|
|
|