mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Table_locks_waited
Table_locks_immediate mysys/thr_lock.c: count locks sql/mysqld.cc: count locks sql/sql_base.cc: count locks
This commit is contained in:
@ -32,6 +32,7 @@
|
||||
TABLE *unused_tables; /* Used by mysql_test */
|
||||
HASH open_cache; /* Used by mysql_test */
|
||||
|
||||
extern "C" ulong locks_waited, locks_immediate;
|
||||
|
||||
static int open_unireg_entry(THD *thd,TABLE *entry,const char *db,
|
||||
const char *name, const char *alias, bool locked);
|
||||
@ -1166,7 +1167,8 @@ bool wait_for_tables(THD *thd)
|
||||
{
|
||||
/* Now we can open all tables without any interference */
|
||||
thd->proc_info="Reopen tables";
|
||||
result=reopen_tables(thd,0,0);
|
||||
if(!(result=reopen_tables(thd,0,0)))
|
||||
++locks_waited;
|
||||
}
|
||||
pthread_mutex_unlock(&LOCK_open);
|
||||
thd->proc_info=0;
|
||||
|
Reference in New Issue
Block a user