mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-9488 - Table cache cleanups
Remove tdc_acquire_share() helpers: they don't actually make things simpler.
This commit is contained in:
@@ -1015,10 +1015,7 @@ TABLE_SHARE *mrn_get_table_share(TABLE_LIST *table_list, int *error)
|
||||
share = get_table_share(thd, table_list, key, key_length, 0, error,
|
||||
hash_value);
|
||||
#elif defined(MRN_HAVE_TDC_ACQUIRE_SHARE)
|
||||
share = tdc_acquire_share(thd, table_list->db, table_list->table_name, key,
|
||||
key_length,
|
||||
table_list->mdl_request.key.tc_hash_value(),
|
||||
GTS_TABLE, NULL);
|
||||
share = tdc_acquire_share(thd, table_list, GTS_TABLE);
|
||||
#else
|
||||
share = get_table_share(thd, table_list, key, key_length, 0, error);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user