mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-9488 - Table cache cleanups
Remove tdc_acquire_share() helpers: they don't actually make things simpler.
This commit is contained in:
@ -5047,7 +5047,9 @@ bool ha_table_exists(THD *thd, const char *db, const char *table_name,
|
||||
|
||||
Table_exists_error_handler no_such_table_handler;
|
||||
thd->push_internal_handler(&no_such_table_handler);
|
||||
TABLE_SHARE *share= tdc_acquire_share(thd, db, table_name, flags);
|
||||
table.init_one_table(db, strlen(db), table_name, strlen(table_name),
|
||||
table_name, TL_READ);
|
||||
TABLE_SHARE *share= tdc_acquire_share(thd, &table, flags);
|
||||
thd->pop_internal_handler();
|
||||
|
||||
if (hton && share)
|
||||
|
Reference in New Issue
Block a user