1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-7324 - Lock-free hash for table definition cache

This commit is contained in:
Sergey Vojtovich
2014-12-28 19:42:17 +04:00
parent 8883c54ac0
commit 6dbc48ca79
22 changed files with 911 additions and 773 deletions

View File

@@ -5001,12 +5001,12 @@ bool ha_table_exists(THD *thd, const char *db, const char *table_name,
else if (engines_with_discover)
hton= &dummy;
TABLE_SHARE *share= tdc_lock_share(db, table_name);
if (share)
TDC_element *element= tdc_lock_share(thd, db, table_name);
if (element && element != MY_ERRPTR)
{
if (hton)
*hton= share->db_type();
tdc_unlock_share(share);
*hton= element->share->db_type();
tdc_unlock_share(element);
DBUG_RETURN(TRUE);
}