~mdcallag/+junk/5.1-map

« back to all changes in this revision

Viewing changes to mysql-test/t/rpl000001.test

  • Committer: sasha at sashanet
  • Date: 2001-04-11 02:56:54 UTC
  • mto: This revision was merged to the branch mainline in revision 671.
  • Revision ID: sp1r-sasha@mysql.sashanet.com-20010411025654-39177
do not log the drop internal temporary tables into the binary log
mark killed partially completed updates with an error code in binlog
stop replication if the master reports a possible partial/killed update
test partially killed update

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
save_master_pos;
21
21
connection slave;
22
22
sync_with_master;
 
23
#test handling of aborted connection in the middle of update
 
24
connection master;
 
25
drop table if exists t1,t2;
 
26
create table t1(n int);
 
27
let $1=30000;
 
28
while ($1)
 
29
{
 
30
 eval insert into t1 values($1);
 
31
 dec $1;
 
32
}
 
33
create table t2(id int);
 
34
insert into t2 values(connection_id());
 
35
save_master_pos;
 
36
send update t1 set n = n + 1;
 
37
connection master1;
 
38
select (@id := id) - id from t2;
 
39
sleep 0.1;
 
40
kill @id;
 
41
drop table t2;
 
42
connection master;
 
43
--error 1053;
 
44
reap;
 
45
connection slave;
 
46
sync_with_master ;
 
47
show slave status;
 
48
set sql_slave_skip_counter=1;
 
49
slave start;
 
50
select count(*) from t1;
 
51
connection master1;
 
52
drop table t1;
 
53
create table t1 (n int);
 
54
insert into t1 values(3456);
 
55
save_master_pos;
 
56
connection slave;
 
57
sync_with_master;
 
58
select n from t1;
 
59
connection master1;
 
60
drop table t1;
 
61
save_master_pos;
 
62
connection slave;
 
63
sync_with_master;
 
64
 
23
65