mirror of
https://github.com/MariaDB/server.git
synced 2025-12-19 22:42:44 +03:00
#5001 test case for xa slave crash refs[t:5001]
git-svn-id: file:///svn/mysql/tests/mysql-test@44330 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
1
mysql-test/suite/rpl/t/tokudb_innodb_xa_crash-slave.opt
Normal file
1
mysql-test/suite/rpl/t/tokudb_innodb_xa_crash-slave.opt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
--log-slave-updates=0
|
||||||
25
mysql-test/suite/rpl/t/tokudb_innodb_xa_crash.test
Normal file
25
mysql-test/suite/rpl/t/tokudb_innodb_xa_crash.test
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
--source include/master-slave.inc
|
||||||
|
--source include/have_tokudb.inc
|
||||||
|
--source include/have_innodb.inc
|
||||||
|
|
||||||
|
eval CREATE TABLE t1(`a` INT) ENGINE=TokuDB;
|
||||||
|
eval CREATE TABLE t2(`a` INT) ENGINE=InnoDB;
|
||||||
|
|
||||||
|
connection master;
|
||||||
|
begin;
|
||||||
|
insert into t1 values (1);
|
||||||
|
insert into t2 values (1);
|
||||||
|
commit;
|
||||||
|
|
||||||
|
sync_slave_with_master;
|
||||||
|
|
||||||
|
--echo TABLES t1 and t2 must be equal otherwise an error will be thrown.
|
||||||
|
let $diff_tables= master:test.t1, slave:test.t1;
|
||||||
|
source include/diff_tables.inc;
|
||||||
|
|
||||||
|
let $diff_tables= master:test.t2, slave:test.t2;
|
||||||
|
source include/diff_tables.inc;
|
||||||
|
|
||||||
|
connection master;
|
||||||
|
drop table t1,t2;
|
||||||
|
--source include/rpl_end.inc
|
||||||
Reference in New Issue
Block a user