Commit fd5d7fa7 authored by mkindahl@dl145h.mysql.com's avatar mkindahl@dl145h.mysql.com
Browse files

Fixing test rpl_events to not give false failures.

parent 8906700e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;
+9 −1
Original line number Diff line number Diff line
@@ -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;