diff options
author | serg@serg.mylan <> | 2004-03-18 11:03:24 +0100 |
---|---|---|
committer | serg@serg.mylan <> | 2004-03-18 11:03:24 +0100 |
commit | 1c658417b1731833f870497cdf67065800a624b5 (patch) | |
tree | 55977e12cdb53a748cadde527c0c1d4b098c6090 /sql/sql_db.cc | |
parent | 43706715daf1039a772c2d2aaceae0ef93ffe037 (diff) | |
download | mariadb-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.cc | 3 |
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 { |