mirror of
https://github.com/MariaDB/server.git
synced 2025-09-11 05:52:26 +03:00
MDEV-342: fix two race conditions in the test case that could occasionally cause spurious failures.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
SET GLOBAL max_binlog_size= 4096;
|
||||
SET GLOBAL innodb_flush_log_at_trx_commit= 1;
|
||||
RESET MASTER;
|
||||
CREATE TABLE t1 (a INT PRIMARY KEY, b MEDIUMTEXT) ENGINE=Innodb;
|
||||
SET DEBUG_SYNC= "binlog_open_before_update_index SIGNAL con1_ready WAIT_FOR con1_cont";
|
||||
SET SESSION debug_dbug="+d,crash_create_critical_before_update_index";
|
||||
|
@@ -8,6 +8,7 @@
|
||||
# (We do not need to restore these settings, as we crash the server).
|
||||
SET GLOBAL max_binlog_size= 4096;
|
||||
SET GLOBAL innodb_flush_log_at_trx_commit= 1;
|
||||
RESET MASTER;
|
||||
|
||||
CREATE TABLE t1 (a INT PRIMARY KEY, b MEDIUMTEXT) ENGINE=Innodb;
|
||||
|
||||
@@ -35,6 +36,9 @@ SET DEBUG_SYNC= "now WAIT_FOR con2_ready";
|
||||
--write_file $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
|
||||
wait-binlog_mdev342.test
|
||||
EOF
|
||||
# If con1 manages to race ahead and crash, we can see the crash already in the
|
||||
# SET DEBUG_SYNC statement, so need --error here also.
|
||||
--error 0,2006,2013
|
||||
SET DEBUG_SYNC= "now SIGNAL con1_cont";
|
||||
connection con1;
|
||||
--error 2006,2013
|
||||
|
Reference in New Issue
Block a user