From a9c52ff7172308af72f062a1cae86671cbb1ed7a Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 19 Jul 2002 21:57:53 +0300 Subject: Fix wrong usage of constant which could cause mysqld to use index when doing an update/delete on small tables. code cleanup Docs/manual.texi: changelog sql/ha_innobase.cc: Removed compiler warning sql/slave.cc: Cleanup comments and indentation for suppressing connect warnings sql/sql_db.cc: clean up comment sql/sql_delete.cc: Fix wrong usage of constant which could cause mysqld to use index when doing an update/delete on small tables. sql/sql_update.cc: Fix wrong usage of constant which could cause mysqld to use index when doing an update/delete on small tables. --- sql/sql_db.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'sql/sql_db.cc') 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)); -- cgit v1.2.1