mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Extended WEEK() to be able to handle ISO weeks.
unlink socket file if mysqld dies on startup Some optimization of AND expressions
This commit is contained in:
@@ -376,14 +376,14 @@ bool close_cached_tables(THD *thd, bool if_wait_for_refresh,
|
||||
if (!found)
|
||||
if_wait_for_refresh=0; // Nothing to wait for
|
||||
}
|
||||
if (!tables)
|
||||
kill_delayed_threads();
|
||||
if (if_wait_for_refresh)
|
||||
{
|
||||
/*
|
||||
If there is any table that has a lower refresh_version, wait until
|
||||
this is closed (or this thread is killed) before returning
|
||||
*/
|
||||
if (!tables)
|
||||
kill_delayed_threads();
|
||||
thd->mysys_var->current_mutex= &LOCK_open;
|
||||
thd->mysys_var->current_cond= &COND_refresh;
|
||||
thd->proc_info="Flushing tables";
|
||||
|
||||
Reference in New Issue
Block a user