~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/r/rpl_row_flsh_tbls.result

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
stop slave;
 
2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
3
reset master;
 
4
reset slave;
 
5
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
6
start slave;
 
7
create table t1 (a int);
 
8
insert into t1 values (10);
 
9
create table t2 (a int);
 
10
create table t3 (a int) engine=merge union(t1);
 
11
create table t4 (a int);
 
12
insert into t4 select * from t3;
 
13
rename table t1 to t5, t2 to t1;
 
14
flush no_write_to_binlog tables;
 
15
SHOW BINLOG EVENTS FROM 897 ;
 
16
Log_name        Pos     Event_type      Server_id       End_log_pos     Info
 
17
master-bin.000001       #       Query   1       #       use `test`; rename table t1 to t5, t2 to t1
 
18
select * from t3;
 
19
a
 
20
flush tables;
 
21
SHOW BINLOG EVENTS FROM 897 ;
 
22
Log_name        Pos     Event_type      Server_id       End_log_pos     Info
 
23
master-bin.000001       #       Query   1       #       use `test`; rename table t1 to t5, t2 to t1
 
24
master-bin.000001       #       Query   1       #       use `test`; flush tables
 
25
select * from t3;
 
26
a
 
27
stop slave;
 
28
drop table t1;
 
29
flush tables with read lock;
 
30
start slave;
 
31
stop slave;
 
32
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
 
33
unlock tables;
 
34
drop table t3, t4, t5;