mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
bd6a70019e
Now the I/O thread (in flush_master_info()) flushes the relay log to disk after reading every event. Slower but provides additionnal safety in case of brutal crash. I had to make the flush optional (i.e. add a if(some_bool_argument) in the function) because sometimes flush_master_info() is called when there is no usable relay log (the relay log's IO_CACHE is not initialized so can't be flushed). mysql-test/r/rpl_loaddata_rule_m.result: avoid a harmless error in the .err file; we don't need a slave in this test (even though it's called 'rpl' because it's testing binlog-ignore-db). mysql-test/t/rpl_loaddata_rule_m.test: result update sql/repl_failsafe.cc: update call to flush_master_info() according to new prototype. sql/slave.cc: - Now the I/O thread (in flush_master_info()) flushes the relay log to disk after reading every event. Slower but provides additionnal safety in case of brutal crash. I had to make the flush optional (i.e. add a if(some_bool_argument) in the function) because sometimes flush_master_info() is called when there is no usable relay log (the relay log's IO_CACHE is not initialized so can't be flushed). - Update version in message. - Remove warning about bug as it's not true anymore (since this changeset). sql/slave.h: new prototype sql/sql_repl.cc: update call to flush_master_info() according to new prototype.
23 lines
621 B
Text
23 lines
621 B
Text
# See if the master logs LOAD DATA INFILE correctly when binlog_*_db rules
|
|
# exist.
|
|
# This is for BUG#1100 (LOAD DATA INFILE was half-logged).
|
|
|
|
source include/master-slave.inc;
|
|
|
|
--disable_warnings
|
|
drop database if exists mysqltest;
|
|
--enable_warnings
|
|
|
|
connection slave;
|
|
stop slave; # don't need slave for this test
|
|
|
|
# Test logging on master
|
|
|
|
connection master;
|
|
# 'test' is the current database
|
|
create database mysqltest;
|
|
create table t1(a int, b int, unique(b));
|
|
use mysqltest;
|
|
load data infile '../../std_data/rpl_loaddata.dat' into table test.t1;
|
|
show binlog events from 79; # should be nothing
|
|
drop database mysqltest;
|