diff options
Diffstat (limited to 'mysql-test/r')
-rw-r--r-- | mysql-test/r/have_debug.require | 2 | ||||
-rw-r--r-- | mysql-test/r/rpl_crash_binlog_ib_1a.result | 27 | ||||
-rw-r--r-- | mysql-test/r/rpl_crash_binlog_ib_1b.result | 24 | ||||
-rw-r--r-- | mysql-test/r/rpl_crash_binlog_ib_2a.result | 32 | ||||
-rw-r--r-- | mysql-test/r/rpl_crash_binlog_ib_2b.result | 28 | ||||
-rw-r--r-- | mysql-test/r/rpl_crash_binlog_ib_3a.result | 25 | ||||
-rw-r--r-- | mysql-test/r/rpl_crash_binlog_ib_3b.result | 20 |
7 files changed, 158 insertions, 0 deletions
diff --git a/mysql-test/r/have_debug.require b/mysql-test/r/have_debug.require new file mode 100644 index 00000000000..714922cee63 --- /dev/null +++ b/mysql-test/r/have_debug.require @@ -0,0 +1,2 @@ +debug +1 diff --git a/mysql-test/r/rpl_crash_binlog_ib_1a.result b/mysql-test/r/rpl_crash_binlog_ib_1a.result new file mode 100644 index 00000000000..ec2c620b093 --- /dev/null +++ b/mysql-test/r/rpl_crash_binlog_ib_1a.result @@ -0,0 +1,27 @@ +stop slave; +drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; +reset master; +reset slave; +drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; +start slave; +flush logs; +set autocommit=1; +set sql_log_bin=0; +create table t1 (n int) engine=innodb; +set sql_log_bin=1; +create table t1 (n int) engine=myisam; +insert into t1 values (3); +show master status; +File Position Binlog_Do_DB Binlog_Ignore_DB +master-bin.000002 64 + insert into t1 values (4); +select * from t1; +n +3 +set @a=load_file("MYSQL_TEST_DIR/var/log/master-bin.000002"); +select length(@a); +length(@a) +124 +select @a like "%values (4)%"; +@a like "%values (4)%" +1 diff --git a/mysql-test/r/rpl_crash_binlog_ib_1b.result b/mysql-test/r/rpl_crash_binlog_ib_1b.result new file mode 100644 index 00000000000..1073811f126 --- /dev/null +++ b/mysql-test/r/rpl_crash_binlog_ib_1b.result @@ -0,0 +1,24 @@ +select * from t1; +n +3 +insert into t1 values (5); +select * from t1; +n +3 +5 +select * from t1; +n +3 +start slave; +select * from t1; +n +3 +5 +set @a=load_file("MYSQL_TEST_DIR/var/log/master-bin.000002"); +select length(@a); +length(@a) +64 +select @a like "%values (4)%"; +@a like "%values (4)%" +0 +drop table if exists t1; diff --git a/mysql-test/r/rpl_crash_binlog_ib_2a.result b/mysql-test/r/rpl_crash_binlog_ib_2a.result new file mode 100644 index 00000000000..4614dfe76f9 --- /dev/null +++ b/mysql-test/r/rpl_crash_binlog_ib_2a.result @@ -0,0 +1,32 @@ +stop slave; +drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; +reset master; +reset slave; +drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; +start slave; +flush logs; +set autocommit=0; +set sql_log_bin=0; +create table t1(n int) engine=innodb; +set sql_log_bin=1; +create table t1(n int) engine=myisam; +insert into t1 values (3); +insert into t1 values (4); +commit; +show master status; +File Position Binlog_Do_DB Binlog_Ignore_DB +master-bin.000002 205 +insert into t1 values (5); +insert into t1 values (6); + commit; +select * from t1; +n +3 +4 +set @a=load_file("MYSQL_TEST_DIR/var/log/master-bin.000002"); +select length(@a); +length(@a) +406 +select @a like "%values (5)%"; +@a like "%values (5)%" +1 diff --git a/mysql-test/r/rpl_crash_binlog_ib_2b.result b/mysql-test/r/rpl_crash_binlog_ib_2b.result new file mode 100644 index 00000000000..446bd4ad13f --- /dev/null +++ b/mysql-test/r/rpl_crash_binlog_ib_2b.result @@ -0,0 +1,28 @@ +select * from t1; +n +3 +4 +insert into t1 values (7); +select * from t1; +n +3 +4 +7 +select * from t1; +n +3 +4 +start slave; +select * from t1; +n +3 +4 +7 +set @a=load_file("MYSQL_TEST_DIR/var/log/master-bin.000002"); +select length(@a); +length(@a) +205 +select @a like "%values (5)%"; +@a like "%values (5)%" +0 +drop table if exists t1; diff --git a/mysql-test/r/rpl_crash_binlog_ib_3a.result b/mysql-test/r/rpl_crash_binlog_ib_3a.result new file mode 100644 index 00000000000..5baef043c0e --- /dev/null +++ b/mysql-test/r/rpl_crash_binlog_ib_3a.result @@ -0,0 +1,25 @@ +stop slave; +drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; +reset master; +reset slave; +drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; +start slave; +flush logs; +set autocommit=1; +set sql_log_bin=0; +create table t1 (n int) engine=innodb; +set sql_log_bin=1; +create table t1 (n int) engine=myisam; +show master status; +File Position Binlog_Do_DB Binlog_Ignore_DB +master-bin.000002 4 + insert into t1 values (4); +select * from t1; +n +set @a=load_file("MYSQL_TEST_DIR/var/log/master-bin.000002"); +select length(@a); +length(@a) +64 +select @a like "%values (4)%"; +@a like "%values (4)%" +1 diff --git a/mysql-test/r/rpl_crash_binlog_ib_3b.result b/mysql-test/r/rpl_crash_binlog_ib_3b.result new file mode 100644 index 00000000000..ea7941699ba --- /dev/null +++ b/mysql-test/r/rpl_crash_binlog_ib_3b.result @@ -0,0 +1,20 @@ +select * from t1; +n +insert into t1 values (5); +select * from t1; +n +5 +select * from t1; +n +start slave; +select * from t1; +n +5 +set @a=load_file("MYSQL_TEST_DIR/var/log/master-bin.000002"); +select length(@a); +length(@a) +4 +select @a like "%values (4)%"; +@a like "%values (4)%" +0 +drop table if exists t1; |