mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
moving LOCK_open into get_table_share()
This commit is contained in:
@ -128,10 +128,8 @@ static int prepare_for_repair(THD *thd, TABLE_LIST *table_list,
|
||||
has_mdl_lock= TRUE;
|
||||
|
||||
hash_value= my_calc_hash(&table_def_cache, (uchar*) key, key_length);
|
||||
mysql_mutex_lock(&LOCK_open);
|
||||
share= get_table_share(thd, table_list, key, key_length,
|
||||
FRM_READ_TABLE_ONLY, ¬_used, hash_value);
|
||||
mysql_mutex_unlock(&LOCK_open);
|
||||
if (share == NULL)
|
||||
DBUG_RETURN(0); // Can't open frm file
|
||||
|
||||
|
Reference in New Issue
Block a user