mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
Cleaning DROP TABLE which is important if the tests are run in a certain order.
This is because rpl_relayrotate.test uses InnoDB. Example of a failing sequence: rpl_relayrotate.test repl_user_variables.test rpl_relayrotate.test Explaination in the files. Btw all other tests which use InnoDB (innodb*.test) already have this final DROP TABLE. Removed a wrong comment of mine.
This commit is contained in:
parent
5b643e5527
commit
3ac3252a65
2 changed files with 12 additions and 3 deletions
|
@ -16,3 +16,4 @@ master_pos_wait('master-bin.001',3000,120)=-1
|
|||
select * from t1 where a=8000;
|
||||
a
|
||||
8000
|
||||
drop table t1;
|
||||
|
|
|
@ -56,6 +56,14 @@ start slave;
|
|||
# Detect this with timeout.
|
||||
select master_pos_wait('master-bin.001',3000,120)=-1;
|
||||
select * from t1 where a=8000;
|
||||
# Note that the simple fact to have less than around 30 slave's binlogs
|
||||
# (the slave is started with --log-slave-updates) is already
|
||||
# a proof that the transaction was not properly resumed.
|
||||
|
||||
# The following DROP is a very important cleaning task:
|
||||
# imagine the next test is run with --skip-innodb: it will do
|
||||
# DROP TABLE IF EXISTS t1; but this will delete the frm and leave
|
||||
# some data in the InnoDB datafile (because at that time mysqld
|
||||
# does not know about InnoDB : --skip-innodb). So if later in the
|
||||
# test suite a test wants to create an InnoDB table called t1, it
|
||||
# will fail with
|
||||
# InnoDB: Error: table t1 already exists in InnoDB internal
|
||||
# InnoDB: data dictionary. Have you deleted the .frm file etc
|
||||
drop table t1;
|
||||
|
|
Loading…
Reference in a new issue