mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
Fixing test rpl_events to not give false failures.
This commit is contained in:
parent
8906700e13
commit
fd5d7fa761
2 changed files with 12 additions and 2 deletions
|
@ -195,9 +195,11 @@ test slave_terminate SLAVESIDE_DISABLED 2
|
|||
DROP EVENT test.slave_terminate;
|
||||
"Cleanup"
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t28953 (a INT);
|
||||
CREATE EVENT event1 ON SCHEDULE EVERY 1 YEAR
|
||||
DO BEGIN
|
||||
select * from t1;
|
||||
select * from t28953;
|
||||
END;|
|
||||
ALTER EVENT event1 RENAME TO event2;
|
||||
DROP EVENT event2;
|
||||
DROP TABLE t28953;
|
||||
|
|
|
@ -28,10 +28,12 @@ set binlog_format=statement;
|
|||
|
||||
connection master;
|
||||
|
||||
CREATE TABLE t28953 (a INT);
|
||||
|
||||
DELIMITER |;
|
||||
CREATE EVENT event1 ON SCHEDULE EVERY 1 YEAR
|
||||
DO BEGIN
|
||||
select * from t1;
|
||||
select * from t28953;
|
||||
END;|
|
||||
DELIMITER ;|
|
||||
|
||||
|
@ -45,3 +47,9 @@ DROP EVENT event2;
|
|||
|
||||
sync_slave_with_master;
|
||||
|
||||
# Doing cleanup of the table referred to in the event to guarantee
|
||||
# that there is no bad timing cauing it to try to access the table.
|
||||
|
||||
connection master;
|
||||
DROP TABLE t28953;
|
||||
sync_slave_with_master;
|
||||
|
|
Loading…
Add table
Reference in a new issue