diff options
author | unknown <monty@mashka.mysql.fi> | 2002-07-19 21:57:53 +0300 |
---|---|---|
committer | unknown <monty@mashka.mysql.fi> | 2002-07-19 21:57:53 +0300 |
commit | a9c52ff7172308af72f062a1cae86671cbb1ed7a (patch) | |
tree | a8e6eca0f255ec9e518c1f9974e71335bdfa63aa /sql/sql_db.cc | |
parent | 887aaff93919e9f359133d8c7a86277789d130e1 (diff) | |
download | mariadb-git-a9c52ff7172308af72f062a1cae86671cbb1ed7a.tar.gz |
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.
Diffstat (limited to 'sql/sql_db.cc')
-rw-r--r-- | sql/sql_db.cc | 11 |
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)); |