1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

race-condition safe implementation of test_if_data_home_dir()

don't realpath() twice
This commit is contained in:
Sergei Golubchik
2017-02-20 19:53:12 +01:00
parent 93cb0246b8
commit 955f2f036d
3 changed files with 34 additions and 15 deletions

View File

@ -33,7 +33,8 @@ enum enum_mysql_completiontype {
COMMIT_RELEASE=-1, COMMIT=0, COMMIT_AND_CHAIN=6
};
extern "C" int test_if_data_home_dir(const char *dir);
extern "C" int path_starts_from_data_home_dir(const char *dir);
int test_if_data_home_dir(const char *dir);
bool multi_update_precheck(THD *thd, TABLE_LIST *tables);
bool multi_delete_precheck(THD *thd, TABLE_LIST *tables);