mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 22:34:18 +01:00
f6ff4a5810
The 'slave_patternload_file' is assigned to the real path of the load data file when initializing the object of Relay_log_info. But the path of the load data file is not formatted to real path when executing event from relay log. So the error will be encountered if the path of the load data file is a symbolic link. Actually the global 'opt_secure_file_priv' is not formatted to real path when loading data from file. So the same thing will happen too. To fix these errors, the path of the load data file should be formatted to real path when executing event from relay log. And the 'opt_secure_file_priv' should be formatted to real path when loading data infile.
20 lines
494 B
Text
20 lines
494 B
Text
#
|
|
# BUG#43913
|
|
# This test verifies if loading data infile will work fine
|
|
# if the path of the load data file is a symbolic link.
|
|
#
|
|
--source include/master-slave.inc
|
|
--source include/have_binlog_format_statement.inc
|
|
|
|
create table t1(a int not null auto_increment, b int, primary key(a) );
|
|
load data infile '../../std_data/rpl_loaddata.dat' into table t1;
|
|
select * from t1;
|
|
|
|
sync_slave_with_master;
|
|
connection slave;
|
|
select * from t1;
|
|
|
|
connection master;
|
|
drop table t1;
|
|
sync_slave_with_master;
|
|
|