~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

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;
 
1
include/master-slave.inc
 
2
[connection master]
7
3
==== Initialize ====
8
4
[on master]
9
5
CREATE TABLE t1(a INT PRIMARY KEY);
19
15
1
20
16
[on slave]
21
17
---- Wait until slave stops with an error ----
 
18
include/wait_for_slave_sql_error.inc [errno=1062]
22
19
Last_SQL_Error = Error 'Duplicate entry '1' for key 'PRIMARY'' on query. Default database: 'test'. Query: 'INSERT INTO t1 VALUES (1)' (expected "duplicate key" error)
 
20
call mtr.add_suppression("Slave SQL.*Duplicate entry .1. for key .PRIMARY.* Error_code: 1062");
23
21
SELECT * FROM t1;
24
22
a
25
23
1
26
24
---- Resolve the conflict on the slave and restart SQL thread ----
27
25
DELETE FROM t1 WHERE a = 1;
28
26
START SLAVE SQL_THREAD;
 
27
include/wait_for_slave_sql_to_start.inc
29
28
---- Sync slave and verify that there is no error ----
30
29
Last_SQL_Error = '' (expected no error)
31
30
SELECT * FROM t1;
52
51
[on master]
53
52
DROP TABLE t1;
54
53
[on slave]
 
54
include/rpl_end.inc