diff options
author | unknown <knielsen@knielsen-hq.org> | 2013-03-29 17:20:01 +0100 |
---|---|---|
committer | unknown <knielsen@knielsen-hq.org> | 2013-03-29 17:20:01 +0100 |
commit | d639aece97e621a71c0419673de561e963b79c2b (patch) | |
tree | c50038df7fa1e7c3f1b7f0cbb0ae505608f289b2 /mysql-test/suite/rpl/r/rpl_gtid_crash.result | |
parent | 0f266bc80ec0683ea9a784754a26c9d561b632b0 (diff) | |
download | mariadb-git-d639aece97e621a71c0419673de561e963b79c2b.tar.gz |
MDEV-26: Global transaction ID.
More fixes for race conditions in test cases.
Diffstat (limited to 'mysql-test/suite/rpl/r/rpl_gtid_crash.result')
-rw-r--r-- | mysql-test/suite/rpl/r/rpl_gtid_crash.result | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mysql-test/suite/rpl/r/rpl_gtid_crash.result b/mysql-test/suite/rpl/r/rpl_gtid_crash.result index c52a94db47b..4cc9dc1806b 100644 --- a/mysql-test/suite/rpl/r/rpl_gtid_crash.result +++ b/mysql-test/suite/rpl/r/rpl_gtid_crash.result @@ -6,6 +6,9 @@ INSERT INTO t1 VALUES (1, 0); include/stop_slave.inc CHANGE MASTER TO master_host = '127.0.0.1', master_port = MASTER_PORT, MASTER_GTID_POS=AUTO; +SET sql_log_bin=0; +FLUSH TABLES; +SET sql_log_bin=1; INSERT INTO t1 VALUES (2,1); INSERT INTO t1 VALUES (3,1); include/start_slave.inc @@ -23,6 +26,9 @@ SHOW BINLOG EVENTS IN 'master-bin.000001' LIMIT 1,1; Log_name Pos Event_type Server_id End_log_pos Info master-bin.000001 # Gtid_list # # [] CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB; +SET sql_log_bin=0; +FLUSH TABLES; +SET sql_log_bin=1; include/start_slave.inc SET gtid_domain_id= 1; INSERT INTO t1 VALUES (1); @@ -61,22 +67,37 @@ include/stop_slave.inc SET GLOBAL debug_dbug="+d,inject_crash_before_write_rpl_slave_state"; START SLAVE; INSERT INTO t1 VALUES (4); +SET sql_log_bin=0; +FLUSH TABLES; +SET sql_log_bin=1; include/stop_slave.inc SET GLOBAL debug_dbug="+d,crash_commit_before"; START SLAVE; INSERT INTO t1 VALUES (5); +SET sql_log_bin=0; +FLUSH TABLES; +SET sql_log_bin=1; include/stop_slave.inc SET GLOBAL debug_dbug="+d,crash_commit_after"; START SLAVE; INSERT INTO t1 VALUES (6); +SET sql_log_bin=0; +FLUSH TABLES; +SET sql_log_bin=1; include/stop_slave.inc SET GLOBAL debug_dbug="+d,inject_crash_before_flush_rli"; START SLAVE; INSERT INTO t1 VALUES (7); +SET sql_log_bin=0; +FLUSH TABLES; +SET sql_log_bin=1; include/stop_slave.inc SET GLOBAL debug_dbug="+d,inject_crash_after_flush_rli"; START SLAVE; INSERT INTO t1 VALUES (8); +SET sql_log_bin=0; +FLUSH TABLES; +SET sql_log_bin=1; SELECT * FROM t1 ORDER BY a; a 1 |