mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
BUG#37858: loaddata,rpl_slave_skip,rpl_innodb_mixed_dml fail if datafile not world-readable
Problem 1: main.loaddata tried to trigger an error caused by reading files outside the vardir, by reading itself. However, if loaddata.test is not world-readable (e.g., umask=0077), then another error is triggered. Fix 1: allow the other error too. Problem 2: rpl_slave_skip and rpl_innodb_mixed_dml tried to copy a file from mysql-test/suite/rpl/data to mysql-test/var and then read it. That failed too if umask=0077, since the file would not become world-readable. Fix 2: move the files from mysql-test/suite/rpl/data to mysql-test/std_data and update tests accordingly. Remove the directory mysql-test/suite/rpl/data.
This commit is contained in:
3
mysql-test/std_data/rpl_bug28618.dat
Normal file
3
mysql-test/std_data/rpl_bug28618.dat
Normal file
@@ -0,0 +1,3 @@
|
||||
1|master only
|
||||
2|master only
|
||||
3|master only
|
3
mysql-test/std_data/rpl_mixed.dat
Normal file
3
mysql-test/std_data/rpl_mixed.dat
Normal file
@@ -0,0 +1,3 @@
|
||||
10|line A
|
||||
20|line B
|
||||
30|line C
|
Reference in New Issue
Block a user