summaryrefslogtreecommitdiff
path: root/sql/sql_show.h
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2016-06-20 09:58:31 +0300
committerJan Lindström <jan.lindstrom@mariadb.com>2016-06-20 09:58:31 +0300
commit70ad689b11bfbd8a30a777f4893a5384628c00e7 (patch)
tree68c8ff4244b6c6bd7f4e01dc20ce3f129f76d01f /sql/sql_show.h
parente24a1833701d358b98d294716c2c1d24850bf982 (diff)
downloadmariadb-git-70ad689b11bfbd8a30a777f4893a5384628c00e7.tar.gz
MDEV-8633: information_schema.index_statistics doesn't delete
item when drop table indexes or drop table; Problem was that table and index statistics is removed from persistent tables but not from memory cache. Added functions to remove table and index statistics from memory cache.
Diffstat (limited to 'sql/sql_show.h')
-rw-r--r--sql/sql_show.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_show.h b/sql/sql_show.h
index 84064ae0a05..9ca60557cc0 100644
--- a/sql/sql_show.h
+++ b/sql/sql_show.h
@@ -113,7 +113,8 @@ void view_store_options(THD *thd, TABLE_LIST *table, String *buff);
void init_fill_schema_files_row(TABLE* table);
bool schema_table_store_record(THD *thd, TABLE *table);
void initialize_information_schema_acl();
-
+int del_global_index_stat(THD *thd, TABLE* tab, KEY* key_info);
+int del_global_table_stat(THD *thd, LEX_STRING *db, LEX_STRING *table);
ST_SCHEMA_TABLE *find_schema_table(THD *thd, const char* table_name);
ST_SCHEMA_TABLE *get_schema_table(enum enum_schema_tables schema_table_idx);
int make_schema_select(THD *thd, SELECT_LEX *sel,