mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
A fix for the error message when database can not be dropped due to
the extra files being present.
This commit is contained in:
@ -325,7 +325,12 @@ static long mysql_rm_known_files(THD *thd, MY_DIR *dirp, const char *db,
|
|||||||
If the directory is a symbolic link, remove the link first, then
|
If the directory is a symbolic link, remove the link first, then
|
||||||
remove the directory the symbolic link pointed at
|
remove the directory the symbolic link pointed at
|
||||||
*/
|
*/
|
||||||
if (!found_other_files)
|
if (found_other_files)
|
||||||
|
{
|
||||||
|
my_error(ER_DB_DROP_RMDIR, MYF(0), org_path, EEXIST);
|
||||||
|
DBUG_RETURN(-1);
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
char tmp_path[FN_REFLEN], *pos;
|
char tmp_path[FN_REFLEN], *pos;
|
||||||
char *path= tmp_path;
|
char *path= tmp_path;
|
||||||
|
Reference in New Issue
Block a user