mirror of
https://github.com/MariaDB/server.git
synced 2025-08-30 11:22:14 +03:00
'LOAD DATA CONCURRENT [LOCAL] INFILE ...' statment only is binlogged as 'LOAD DATA [LOCAL] INFILE ...' in SBR and MBR. As a result, if replication is on, queries on slaves will be blocked by the replication SQL thread. This patch write code to write 'CONCURRENT' into the log event if 'CONCURRENT' option is in the original statement in SBR and MBR.
13 lines
390 B
Plaintext
13 lines
390 B
Plaintext
-- source include/not_ndb_default.inc
|
|
-- source include/have_log_bin.inc
|
|
|
|
CREATE TABLE t1 (c1 char(50));
|
|
LOAD DATA INFILE '../../std_data/words.dat' INTO TABLE t1;
|
|
LOAD DATA CONCURRENT INFILE '../../std_data/words.dat' INTO TABLE t1;
|
|
-- source include/show_binlog_events.inc
|
|
DROP TABLE t1;
|
|
|
|
let $lock_option= CONCURRENT;
|
|
let $engine_type=MyISAM;
|
|
-- source extra/rpl_tests/rpl_loaddata.test
|