| 1 |
include/master-slave.inc |
| 2 |
[connection master] |
| 3 |
connection master; |
| 4 |
create table t1 (a int primary key); |
| 5 |
create table t4 (a int primary key); |
| 6 |
insert into t1 values (1),(1); |
| 7 |
Got one of the listed errors |
| 8 |
insert into t4 values (1),(2); |
| 9 |
connection slave; |
| 10 |
show tables like 't1'; |
| 11 |
Tables_in_test (t1) |
| 12 |
show tables like 't4'; |
| 13 |
Tables_in_test (t4) |
| 14 |
t4 |
| 15 |
SELECT * FROM test.t4 ORDER BY a; |
| 16 |
a |
| 17 |
1 |
| 18 |
2 |
| 19 |
connection master; |
| 20 |
drop table t1; |
| 21 |
connection slave; |
| 22 |
connection master1; |
| 23 |
select get_lock('crash_lock%20C', 10); |
| 24 |
get_lock('crash_lock%20C', 10) |
| 25 |
1 |
| 26 |
connection master; |
| 27 |
create table t2 (a int primary key); |
| 28 |
insert into t2 values(1); |
| 29 |
create table t3 (id int); |
| 30 |
insert into t3 values(connection_id()); |
| 31 |
update t2 set a = a + 1 + get_lock('crash_lock%20C', 10); |
| 32 |
connection master1; |
| 33 |
select (@id := id) - id from t3; |
| 34 |
(@id := id) - id |
| 35 |
0 |
| 36 |
kill @id; |
| 37 |
drop table t2,t3; |
| 38 |
insert into t4 values (3),(4); |
| 39 |
connection master; |
| 40 |
connection master1; |
| 41 |
connection slave; |
| 42 |
SELECT * FROM test.t4 ORDER BY a; |
| 43 |
a |
| 44 |
1 |
| 45 |
2 |
| 46 |
3 |
| 47 |
4 |
| 48 |
connection master1; |
| 49 |
DROP TABLE test.t4; |
| 50 |
connection slave; |
| 51 |
include/rpl_end.inc |