mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
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.
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user