Debian Codegraph @

mysql-test/suite/binlog/r/binlog_killed_simulate.result

raw
1 create table t1 (a int) engine=MyISAM;
2 insert into t1 set a=1;
3 reset master;
4 update t1 set a=2 /* will be "killed" after work has been done */;
5 set @a:=load_file("MYSQLTEST_VARDIR/tmp/binlog_killed_bug27571.binlog");
6 select @a like '%#%error_code=0%' /* must return 1 as query completed before got killed*/;
7 @a like '%#%error_code=0%'
8 1
9 create table t2 (a int, b int) ENGINE=MyISAM;
10 reset master;
11 load data infile '../../std_data/rpl_loaddata.dat' into table t2 /* will be "killed" in the middle */;
12 ERROR 70100: Query execution was interrupted
13 include/show_binlog_events.inc
14 Log_name Pos Event_type Server_id End_log_pos Info
15 master-bin.000001 # Gtid # # BEGIN GTID #-#-#
16 master-bin.000001 # Begin_load_query # # ;file_id=#;block_len=#
17 master-bin.000001 # Execute_load_query # # use `test`; LOAD DATA INFILE '../../std_data/rpl_loaddata.dat' INTO TABLE `t2` FIELDS TERMINATED BY '\t' ENCLOSED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\n' (`a`, `b`) ;file_id=#
18 master-bin.000001 # Query # # COMMIT
19 set @a:=load_file("MYSQLTEST_VARDIR/tmp/binlog_killed_bug27571.binlog");
20 select @a like '%#%error_code=0%' /* must return 0 to mean the killed query is in */;
21 @a like '%#%error_code=0%'
22 0
23 drop table t1,t2;
24 end of the tests