Skip to content

Commit 7f83359

Browse files
author
Luis Soares
committed
Automerge from mysql-trunk-bugfixing.
2 parents e23222c + 21e68e4 commit 7f83359

File tree

3 files changed

+22
-7
lines changed

3 files changed

+22
-7
lines changed

mysql-test/suite/rpl/r/rpl_do_grant.result

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ show grants for rpl_do_grant2@localhost;
8989
ERROR 42000: There is no such grant defined for user 'rpl_do_grant2' on host 'localhost'
9090
show grants for rpl_do_grant2@localhost;
9191
ERROR 42000: There is no such grant defined for user 'rpl_do_grant2' on host 'localhost'
92+
call mtr.add_suppression("Slave: Operation DROP USER failed for 'create_rout_db'@'localhost' Error_code: 1396");
9293
DROP DATABASE IF EXISTS bug42217_db;
9394
CREATE DATABASE bug42217_db;
9495
GRANT CREATE ROUTINE ON bug42217_db.* TO 'create_rout_db'@'localhost'
@@ -166,9 +167,12 @@ DROP FUNCTION upgrade_del_func;
166167
DROP FUNCTION upgrade_alter_func;
167168
DROP DATABASE bug42217_db;
168169
DROP USER 'create_rout_db'@'localhost';
169-
call mtr.add_suppression("Slave: Operation DROP USER failed for 'create_rout_db'@'localhost' Error_code: 1396");
170-
USE mtr;
171-
call mtr.add_suppression("Slave: Operation DROP USER failed for 'create_rout_db'@'localhost' Error_code: 1396");
170+
stop slave;
171+
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
172+
reset master;
173+
reset slave;
174+
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
175+
start slave;
172176
######## BUG#49119 #######
173177
### i) test case from the 'how to repeat section'
174178
stop slave;

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

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ show grants for rpl_do_grant2@localhost;
112112
# BUG42217 mysql.procs_priv does not get replicated
113113
#####################################################
114114
connection master;
115+
call mtr.add_suppression("Slave: Operation DROP USER failed for 'create_rout_db'@'localhost' Error_code: 1396");
116+
sync_slave_with_master;
117+
connection master;
115118

116119
--disable_warnings
117120
DROP DATABASE IF EXISTS bug42217_db;
@@ -201,12 +204,19 @@ USE bug42217_db;
201204
DROP FUNCTION upgrade_del_func;
202205
DROP FUNCTION upgrade_alter_func;
203206
DROP DATABASE bug42217_db;
207+
-- sync_slave_with_master
208+
-- connection master
209+
210+
# user was already dropped in the slave before
211+
# so no need to wait for the slave to replicate
212+
# this statement (if it did and we later synced
213+
# the slave it would end up in an error anyway)
204214
DROP USER 'create_rout_db'@'localhost';
205215

206-
call mtr.add_suppression("Slave: Operation DROP USER failed for 'create_rout_db'@'localhost' Error_code: 1396");
207-
connection slave;
208-
USE mtr;
209-
call mtr.add_suppression("Slave: Operation DROP USER failed for 'create_rout_db'@'localhost' Error_code: 1396");
216+
# finish entire clean up (remove binlogs)
217+
# so that we leave a pristine environment for the
218+
# following tests
219+
-- source include/master-slave-reset.inc
210220

211221
# BUG#49119: Master crashes when executing 'REVOKE ... ON
212222
# {PROCEDURE|FUNCTION} FROM ...'

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ source include/have_binlog_format_row.inc;
1010

1111
LET $ENGINE_TYPE= MyISAM;
1212
source extra/rpl_tests/rpl_tmp_table_and_DDL.test;
13+
sync_slave_with_master;
1314

0 commit comments

Comments
 (0)