mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 21:12:26 +01:00
BUG#38127: main.mysqlbinlog_base64 fails sporadically on pushbuild
Problem: mysqlbinlog_base64 fails because the binlog contains traces from previous test cases. Fix: Make have_log_bin reset the master's binlog.
This commit is contained in:
parent
17d8bd786b
commit
e14d0f10c2
2 changed files with 10 additions and 15 deletions
|
@ -1,4 +1,14 @@
|
|||
# ==== Purpose ====
|
||||
#
|
||||
# Ensure that the server is running with binlogging on and reset the
|
||||
# binlog.
|
||||
#
|
||||
# ==== Usage ====
|
||||
#
|
||||
# source include/have_log_bin.inc;
|
||||
|
||||
-- require r/have_log_bin.require
|
||||
disable_query_log;
|
||||
show variables like "log_bin";
|
||||
RESET MASTER;
|
||||
enable_query_log;
|
||||
|
|
|
@ -32,21 +32,6 @@ drop table t2;
|
|||
select * from t1;
|
||||
select * from t2;
|
||||
|
||||
# DEBUG CODE ADDED BY SVEN. BUG#38127
|
||||
let $count_t1= `SELECT COUNT(*) FROM t1`;
|
||||
let $count_t2= `SELECT COUNT(*) FROM t2`;
|
||||
if (`SELECT $count_t1 != 3 OR $count_t2 != 70`)
|
||||
{
|
||||
--echo Test case bug! See BUG#38127. Printing debug info.
|
||||
--cat_file $MYSQLTEST_VARDIR/tmp/mysqlbinlog_base64.sql
|
||||
SHOW MASTER STATUS;
|
||||
SHOW BINLOG EVENTS;
|
||||
--exec $MYSQL_BINLOG $MYSQLD_DATADIR/master-bin.000001
|
||||
SHOW TABLES;
|
||||
exit;
|
||||
}
|
||||
# END DEBUG CODE
|
||||
|
||||
#
|
||||
# Verify that events larger than the default IO_CACHE buffer
|
||||
# are handled correctly (BUG#25628).
|
||||
|
|
Loading…
Reference in a new issue