mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-12261 build failure without P_S
restore mysql_file_delete_with_symlink() but let it use new my_handler_delete_with_symlink() mysys helper.
This commit is contained in:
@ -815,7 +815,7 @@ bool mysql_rm_db(THD *thd,char *db,bool if_exists, bool silent)
|
||||
if there exists a table with the name 'db', so let's just do it
|
||||
separately. We know this file exists and needs to be deleted anyway.
|
||||
*/
|
||||
if (my_handler_delete_with_symlink(key_file_misc, path, "", MYF(0)) &&
|
||||
if (mysql_file_delete_with_symlink(key_file_misc, path, "", MYF(0)) &&
|
||||
my_errno != ENOENT)
|
||||
{
|
||||
my_error(EE_DELETE, MYF(0), path, my_errno);
|
||||
@ -1119,7 +1119,7 @@ static bool find_db_tables_and_rm_known_files(THD *thd, MY_DIR *dirp,
|
||||
We ignore ENOENT error in order to skip files that was deleted
|
||||
by concurrently running statement like REPAIR TABLE ...
|
||||
*/
|
||||
if (my_handler_delete_with_symlink(key_file_misc, filePath, "", MYF(0)) &&
|
||||
if (mysql_file_delete_with_symlink(key_file_misc, filePath, "", MYF(0)) &&
|
||||
my_errno != ENOENT)
|
||||
{
|
||||
my_error(EE_DELETE, MYF(0), filePath, my_errno);
|
||||
@ -1235,7 +1235,7 @@ long mysql_rm_arc_files(THD *thd, MY_DIR *dirp, const char *org_path)
|
||||
continue;
|
||||
}
|
||||
strxmov(filePath, org_path, "/", file->name, NullS);
|
||||
if (my_handler_delete_with_symlink(key_file_misc, filePath, "", MYF(MY_WME)))
|
||||
if (mysql_file_delete_with_symlink(key_file_misc, filePath, "", MYF(MY_WME)))
|
||||
{
|
||||
goto err;
|
||||
}
|
||||
|
Reference in New Issue
Block a user