summaryrefslogtreecommitdiff
path: root/sql/sql_db.cc
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2002-07-19 21:57:53 +0300
committermonty@mashka.mysql.fi <>2002-07-19 21:57:53 +0300
commitd909f4a5512fae74725141c66af0cc9a5e4a52e7 (patch)
treea8e6eca0f255ec9e518c1f9974e71335bdfa63aa /sql/sql_db.cc
parent5b76647205dcd4dd8c0c7003894fe4bd09bf25de (diff)
downloadmariadb-git-d909f4a5512fae74725141c66af0cc9a5e4a52e7.tar.gz
Fix wrong usage of constant which could cause mysqld to use index when doing an update/delete on small tables.
code cleanup
Diffstat (limited to 'sql/sql_db.cc')
-rw-r--r--sql/sql_db.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/sql/sql_db.cc b/sql/sql_db.cc
index 688a6055a7b..b3d63f72b8d 100644
--- a/sql/sql_db.cc
+++ b/sql/sql_db.cc
@@ -166,11 +166,12 @@ void mysql_rm_db(THD *thd,char *db,bool if_exists)
if ((deleted=mysql_rm_known_files(thd, dirp, path,0)) >= 0)
{
- /* If there are running queries on the tables, MySQL needs to get
- access to LOCK_open to end them. InnoDB on the other hand waits
- for the queries to end before dropping the database. That is why we
- must do the dropping with LOCK_open released. */
-
+ /*
+ If there are running queries on the tables, MySQL needs to get
+ access to LOCK_open to end them. InnoDB on the other hand waits
+ for the queries to end before dropping the database. That is why we
+ must do the dropping with LOCK_open released.
+ */
VOID(pthread_mutex_unlock(&LOCK_open));
ha_drop_database(path);
VOID(pthread_mutex_lock(&LOCK_open));