Debian Codegraph @

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

raw
1 include/master-slave.inc
2 [connection master]
3 connection slave;
4 include/stop_slave.inc
5 change master to master_use_gtid=no;
6 include/start_slave.inc
7 connection master;
8 create table t1 (a int) ENGINE=MyISAM;
9 insert into t1 values (10);
10 create table t2 (a int) ENGINE=MyISAM;
11 create table t3 (a int) engine=merge union(t1);
12 create table t4 (a int);
13 insert into t4 select * from t3;
14 rename table t1 to t5, t2 to t1;
15 flush no_write_to_binlog tables;
16 include/show_binlog_events.inc
17 Log_name Pos Event_type Server_id End_log_pos Info
18 master-bin.000001 # Gtid # # GTID #-#-#
19 master-bin.000001 # Query # # use `test`; rename table t1 to t5, t2 to t1
20 select * from t3;
21 a
22 flush tables;
23 connection slave;
24 select * from t3;
25 a
26 stop slave;
27 include/wait_for_slave_to_stop.inc
28 connection master;
29 drop table t1;
30 connection slave;
31 flush tables with read lock;
32 start slave;
33 include/wait_for_slave_param.inc [Slave_IO_Running]
34 include/wait_for_slave_sql_to_start.inc
35 stop slave;
36 ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
37 unlock tables;
38 connection master;
39 drop table t3, t4, t5;
40 include/rpl_end.inc