1
0
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:
unknown
2001-01-26 20:00:42 -07:00
parent 70e783fa2e
commit eb5706d128
5 changed files with 42 additions and 2 deletions

View File

@ -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;