summaryrefslogtreecommitdiff
path: root/sql/rpl_rli.h
diff options
context:
space:
mode:
authorAlfranio Correia <alfranio.correia@sun.com>2009-02-21 09:36:07 +0000
committerAlfranio Correia <alfranio.correia@sun.com>2009-02-21 09:36:07 +0000
commit4447ce614feba0e9cd49515a91ccfaa84b640cc1 (patch)
treeda0f9ea1883f6601834e69916f437846be614243 /sql/rpl_rli.h
parentb3180fe812971c0cb8d49ef3f0f86ae5dfc1a684 (diff)
downloadmariadb-git-4447ce614feba0e9cd49515a91ccfaa84b640cc1.tar.gz
BUG#38174 secure-file-priv breaks LOAD DATA INFILE replication in statement mode
If secure-file-priv was set on slave, it became unable to execute LOAD DATA INFILE statements sent from master using mixed or statement-based replication. This patch fixes the issue by ignoring this security restriction and checking if the files are created and read by the slave in the --slave-load-tmpdir while executing the SQL Thread.
Diffstat (limited to 'sql/rpl_rli.h')
-rw-r--r--sql/rpl_rli.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/rpl_rli.h b/sql/rpl_rli.h
index e13ea93842c..171778d9675 100644
--- a/sql/rpl_rli.h
+++ b/sql/rpl_rli.h
@@ -260,6 +260,13 @@ public:
char ign_master_log_name_end[FN_REFLEN];
ulonglong ign_master_log_pos_end;
+ /*
+ Indentifies where the SQL Thread should create temporary files for the
+ LOAD DATA INFILE. This is used for security reasons.
+ */
+ char slave_patternload_file[FN_REFLEN];
+ size_t slave_patternload_file_size;
+
Relay_log_info();
~Relay_log_info();