From 8bd1e19d68b5bd39749c4bf66e3882642096b018 Mon Sep 17 00:00:00 2001 From: Konstantin Osipov Date: Thu, 11 Feb 2010 19:02:21 +0300 Subject: [PATCH] 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. --- mysql-test/suite/rpl/t/rpl_sp.test | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mysql-test/suite/rpl/t/rpl_sp.test b/mysql-test/suite/rpl/t/rpl_sp.test index 3d94415fbb5..362bfa17ef3 100644 --- a/mysql-test/suite/rpl/t/rpl_sp.test +++ b/mysql-test/suite/rpl/t/rpl_sp.test @@ -668,10 +668,12 @@ connection master; --echo # Reaping 'insert into t1 (a) values (f1())'... --error ER_SP_DOES_NOT_EXIST --reap -connection master1; +connection master; select * from t1; +sync_slave_with_master; connection slave; select * from t1; +# Cleanup connection master; drop table t1, t2; --error ER_SP_DOES_NOT_EXIST