-
Notifications
You must be signed in to change notification settings - Fork 4k
/
Copy pathloaddata_s.inc
26 lines (21 loc) · 943 Bytes
/
loaddata_s.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# See if the slave logs (in its own binlog, with --log-replica-updates) a
# replicated LOAD DATA INFILE correctly when it has binlog_*_db rules.
# This is for BUG#1100 (LOAD DATA INFILE was half-logged).
-- source include/have_binlog_format_mixed_or_statement.inc
-- source include/rpl/init_source_replica.inc
connection slave;
# Not sure why we connect to slave and then try to reset binary logs and gtids, but I will leave it [JBM]
reset binary logs and gtids;
connection master;
# 'test' is the current database
create table test.t1(a int, b int, unique(b));
load data infile '../../std_data/rpl_loaddata.dat' into table test.t1;
# Test logging on slave;
--source include/rpl/sync_to_replica.inc
select count(*) from test.t1; # check that LOAD was replicated
source include/rpl/deprecated/show_binlog_events.inc;
# Cleanup
connection master;
drop table test.t1;
--source include/rpl/sync_to_replica.inc
--source include/rpl/deinit.inc