summaryrefslogtreecommitdiff
path: root/sql/sql_db.cc
diff options
context:
space:
mode:
authorserg@serg.mylan <>2004-03-18 11:03:24 +0100
committerserg@serg.mylan <>2004-03-18 11:03:24 +0100
commit1c658417b1731833f870497cdf67065800a624b5 (patch)
tree55977e12cdb53a748cadde527c0c1d4b098c6090 /sql/sql_db.cc
parent43706715daf1039a772c2d2aaceae0ef93ffe037 (diff)
downloadmariadb-git-1c658417b1731833f870497cdf67065800a624b5.tar.gz
make DROP DATABASE to behave as documented in the manual - to report number of files deleted
Diffstat (limited to 'sql/sql_db.cc')
-rw-r--r--sql/sql_db.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_db.cc b/sql/sql_db.cc
index 80669089fc4..32874c48599 100644
--- a/sql/sql_db.cc
+++ b/sql/sql_db.cc
@@ -500,6 +500,8 @@ static long mysql_rm_known_files(THD *thd, MY_DIR *dirp, const char *db,
{
if (find_type(fn_ext(file->name),&known_extentions,1+2) <= 0)
found_other_files++;
+ else
+ deleted++;
continue;
}
strxmov(filePath,org_path,"/",file->name,NullS);
@@ -521,6 +523,7 @@ static long mysql_rm_known_files(THD *thd, MY_DIR *dirp, const char *db,
/* Link into list */
(*tot_list_next)= table_list;
tot_list_next= &table_list->next;
+ deleted++;
}
else
{