mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
don't use I_S constants for open_table_def and get_table_share,
have a specially defined enum with clearly named values
This commit is contained in:
@@ -128,8 +128,8 @@ static int prepare_for_repair(THD *thd, TABLE_LIST *table_list,
|
||||
|
||||
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, 0,
|
||||
&error, hash_value);
|
||||
share= get_table_share(thd, table_list, key, key_length,
|
||||
FRM_READ_TABLE_ONLY, &error, 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