diff options
author | Sergei Golubchik <serg@mariadb.org> | 2017-02-20 19:53:12 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-02-27 12:35:10 +0100 |
commit | 955f2f036d6252b90e2bffcec521dd4a7db0a30a (patch) | |
tree | 9ebe926cffe1e80ff852ee85da7ae42b18de7c64 /sql/sql_parse.h | |
parent | 93cb0246b8c883c4f5010468892986fa1d5ba379 (diff) | |
download | mariadb-git-955f2f036d6252b90e2bffcec521dd4a7db0a30a.tar.gz |
race-condition safe implementation of test_if_data_home_dir()
don't realpath() twice
Diffstat (limited to 'sql/sql_parse.h')
-rw-r--r-- | sql/sql_parse.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_parse.h b/sql/sql_parse.h index 66a8f6efc7d..c5ea38706c4 100644 --- a/sql/sql_parse.h +++ b/sql/sql_parse.h @@ -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); |