diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2019-12-21 23:51:49 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2020-04-03 13:01:21 +0400 |
commit | 4197014ba0ba8cb895f3b49b7fdf8bbfe9fca826 (patch) | |
tree | 67a37972e8cc492ce5bcd349855eb1d8df439f2e /sql/table_cache.h | |
parent | 7a947614fbf8b925ae3df70ec8df80c745eafd4c (diff) | |
download | mariadb-git-4197014ba0ba8cb895f3b49b7fdf8bbfe9fca826.tar.gz |
Yet less TDC hash lookups
Let auto repair table and truncate table routines flush TABLE_SHARE
directly.
Part of MDEV-17882 - Cleanup refresh version
Diffstat (limited to 'sql/table_cache.h')
-rw-r--r-- | sql/table_cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/table_cache.h b/sql/table_cache.h index bffb782849c..433df5e0328 100644 --- a/sql/table_cache.h +++ b/sql/table_cache.h @@ -77,6 +77,7 @@ int tdc_share_is_cached(THD *thd, const char *db, const char *table_name); extern TABLE_SHARE *tdc_acquire_share(THD *thd, TABLE_LIST *tl, uint flags, TABLE **out_table= 0); extern void tdc_release_share(TABLE_SHARE *share); +void tdc_remove_referenced_share(THD *thd, TABLE_SHARE *share); void tdc_remove_table(THD *thd, const char *db, const char *table_name); extern int tdc_wait_for_old_version(THD *thd, const char *db, |