Skip to content

Commit 8bd1e19

Browse files
author
Konstantin Osipov
committed
Fix a sporadic failure of rpl_sp.test in next-4284 tree: when doing
SELECT * FROM t1 on slave, first make sure that the slave has received the CREATE TABLE from the master.
1 parent 08df87e commit 8bd1e19

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mysql-test/suite/rpl/t/rpl_sp.test

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,10 +668,12 @@ connection master;
668668
--echo # Reaping 'insert into t1 (a) values (f1())'...
669669
--error ER_SP_DOES_NOT_EXIST
670670
--reap
671-
connection master1;
671+
connection master;
672672
select * from t1;
673+
sync_slave_with_master;
673674
connection slave;
674675
select * from t1;
676+
# Cleanup
675677
connection master;
676678
drop table t1, t2;
677679
--error ER_SP_DOES_NOT_EXIST

0 commit comments

Comments
 (0)