mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
MDEV-28777 binlog.binlog_truncate_multi_engine failed in bb with Lost connection
The 2013 error was right to catch the case B of the test unprepared for an expected simulated crash. The test gets refined to SELECT a (type of) bool value before the crash is invoked.
This commit is contained in:
parent
3b85e3dcc1
commit
8f87023d3f
1 changed files with 5 additions and 3 deletions
|
@ -20,7 +20,9 @@ connect(con1,localhost,root,,);
|
|||
--source include/show_binary_logs.inc
|
||||
INSERT INTO t1 VALUES (1, REPEAT("x", 1));
|
||||
INSERT INTO t2 VALUES (1, REPEAT("x", 1));
|
||||
if (`SELECT $case = "B"`)
|
||||
--let $is_case_B=`SELECT $case = "B"`
|
||||
|
||||
if ($is_case_B)
|
||||
{
|
||||
--write_file $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
|
||||
wait-binlog_truncate_multi_engine.test
|
||||
|
@ -39,12 +41,12 @@ if (`SELECT $debug_sync_action != ""`)
|
|||
send COMMIT;
|
||||
|
||||
--connection default
|
||||
if (`SELECT $case = "B"`)
|
||||
if ($is_case_B)
|
||||
{
|
||||
--source include/wait_until_disconnected.inc
|
||||
--source include/start_mysqld.inc
|
||||
}
|
||||
if (`SELECT $case != "B"`)
|
||||
if (!$is_case_B)
|
||||
{
|
||||
SET DEBUG_SYNC= "now WAIT_FOR con1_ready";
|
||||
--echo List of binary logs after rotation
|
||||
|
|
Loading…
Reference in a new issue