diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2019-12-20 20:33:29 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2020-04-03 13:01:21 +0400 |
commit | 54c03cb4f073b4c3140e75d1747798bace96fdba (patch) | |
tree | a043afe5fda8f43c1795659216d3a9de0b0003af /sql/table_cache.h | |
parent | 02619ed73bc303e511bb8df3df67120e47886ffb (diff) | |
download | mariadb-git-54c03cb4f073b4c3140e75d1747798bace96fdba.tar.gz |
Cleanup mysql_inplace_alter_table()
Removed redundant tdc_remove_table(TDC_RT_REMOVE_ALL). Share was marked
flushed by preceding wait_while_table_is_used() and eventually flushed by
close_all_tables_for_name().
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 37faab87f0c..cf880b7d9b4 100644 --- a/sql/table_cache.h +++ b/sql/table_cache.h @@ -77,6 +77,7 @@ extern void tdc_purge(bool all); extern TDC_element *tdc_lock_share(THD *thd, const char *db, const char *table_name); extern void tdc_unlock_share(TDC_element *element); +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); |