mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Fix for binlog_index test case: hide difference for paths from warning messages between Windows and Unix
mysql-test/suite/binlog/r/binlog_index.result: updated result mysql-test/suite/binlog/t/binlog_index.test: updated test case
This commit is contained in:
@ -13,11 +13,11 @@ flush logs;
|
||||
flush logs;
|
||||
|
||||
source include/show_binary_logs.inc;
|
||||
|
||||
let $MYSQLD_DATADIR= `select @@datadir`;
|
||||
remove_file $MYSQLD_DATADIR/master-bin.000001;
|
||||
|
||||
# there must be a warning with file names
|
||||
replace_regex /\.[\\\/]master/master/;
|
||||
purge binary logs TO 'master-bin.000004';
|
||||
|
||||
--echo *** must show a list starting from the 'TO' argument of PURGE ***
|
||||
@ -37,6 +37,7 @@ remove_file $MYSQLD_DATADIR/master-bin.000001;
|
||||
--echo *** must be a warning master-bin.000001 was not found ***
|
||||
let $date=`select NOW() + INTERVAL 1 MINUTE`;
|
||||
--disable_query_log
|
||||
replace_regex /\.[\\\/]master/master/;
|
||||
eval purge binary logs BEFORE '$date';
|
||||
--enable_query_log
|
||||
|
||||
@ -59,6 +60,7 @@ mkdir $MYSQLD_DATADIR/master-bin.000001;
|
||||
|
||||
--error ER_BINLOG_PURGE_FATAL_ERR
|
||||
purge binary logs TO 'master-bin.000002';
|
||||
replace_regex /\.[\\\/]master/master/;
|
||||
show warnings;
|
||||
rmdir $MYSQLD_DATADIR/master-bin.000001;
|
||||
--disable_warnings
|
||||
|
Reference in New Issue
Block a user