mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
8cb6031dd7
mysql-test/r/myisam.result: Test of DROP TABLE when .MYI or .MYD is missing mysql-test/r/ndb_autodiscover.result: Update test results mysql-test/r/rpl_EE_error.result: Change test to conform with new handling of drop table when handler file is missing mysql-test/t/myisam.test: Test of DROP TABLE when .MYI or .MYD is missing mysql-test/t/rpl_EE_error.test: Change test to conform with new handling of drop table when handler file is missing sql/handler.cc: Generate a warning in ha_delete_table() if we get an error from 'delete_table()' sql/handler.h: More parameters to ha_delete_table() so that we can generate better error messages sql/sql_table.cc: Generate warning in ha_delete_table()
30 lines
879 B
Text
30 lines
879 B
Text
# See if an EE_ error in one event of the master's binlog stops replication
|
|
# (it should not: in this configuration the EE_ error is probably not
|
|
# critical). Example: you do a DROP TABLE on a table which has no MYI file
|
|
# check if START SLAVE, RESET SLAVE, CHANGE MASTER reset Last_slave_error and
|
|
# Last_slave_errno in SHOW SLAVE STATUS (1st and 3rd commands did not: bug 986).
|
|
|
|
source include/master-slave.inc;
|
|
|
|
create table t1 (a int) engine=myisam;
|
|
flush tables;
|
|
system rm ./var/master-data/test/t1.MYI ;
|
|
drop table if exists t1;
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|
|
|
|
# Now a real error.
|
|
|
|
connection master;
|
|
create table t1 (a int, unique(a)) engine=myisam;
|
|
set sql_log_bin=0;
|
|
insert into t1 values(2);
|
|
set sql_log_bin=1;
|
|
save_master_pos;
|
|
--error 1062;
|
|
insert into t1 values(1),(2);
|
|
drop table t1;
|
|
save_master_pos;
|
|
connection slave;
|
|
wait_for_slave_to_stop;
|