mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 22:12:30 +01:00
e5d1324d80
Problem: master binlog has 'create table t1'. Master binlog was removed before slave could replicate it. In test's cleanup code, master did 'drop table t1', which caused slave sql thread to stop with an error since slave sql thread did not know about t1. Fix: t1 is just an auxiliary construction, only needed on master. Hence, we turn off binlogging before t1 is created, drop t1 as soon as we don't need it anymore, and then turn on binlogging again.
10 lines
402 B
PHP
10 lines
402 B
PHP
# $binlog_start can be set by caller or take a default value
|
|
|
|
if (!$binlog_start)
|
|
{
|
|
let $binlog_start=106;
|
|
}
|
|
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR $binlog_start <binlog_start>
|
|
--replace_column 2 # 4 # 5 #
|
|
--replace_regex /\/\* xid=.* \*\//\/* XID *\// /table_id: [0-9]+/table_id: #/ /file_id=[0-9]+/file_id=#/ /block_len=[0-9]+/block_len=#/
|
|
--eval show binlog events from $binlog_start
|