mirror of
https://github.com/MariaDB/server.git
synced 2026-04-26 10:15:29 +02: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:
parent
10d802881c
commit
7be9b15a2a
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
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 *path= tmp_path;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue