summaryrefslogtreecommitdiff
path: root/sql/sql_base.h
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2015-03-10 10:24:20 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2015-03-11 17:39:15 +0100
commit80f03abcca0d902a876d10e6c1dc8c4c6d3b2bfa (patch)
tree3cf78175d7303f3736c6df7786ea9a7ad75b24a2 /sql/sql_base.h
parent3aa1a600bb3cc72dd30edd8f1c41b90e1157a2ed (diff)
downloadmariadb-git-80f03abcca0d902a876d10e6c1dc8c4c6d3b2bfa.tar.gz
MDEV-7671: Cache VIEW definitions in the TDC
(changes of backported patch are very small: strlen removed, error processing fixed, view open statistics added)
Diffstat (limited to 'sql/sql_base.h')
-rw-r--r--sql/sql_base.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/sql/sql_base.h b/sql/sql_base.h
index 211aaee72b2..0e492fa8cf7 100644
--- a/sql/sql_base.h
+++ b/sql/sql_base.h
@@ -117,13 +117,7 @@ TABLE *open_ltable(THD *thd, TABLE_LIST *table_list, thr_lock_type update,
MYSQL_OPEN_GET_NEW_TABLE |\
MYSQL_OPEN_HAS_MDL_LOCK)
-bool open_table(THD *thd, TABLE_LIST *table_list, MEM_ROOT *mem_root,
- Open_table_context *ot_ctx);
-
-bool open_new_frm(THD *thd, TABLE_SHARE *share, const char *alias,
- uint db_stat, uint prgflag,
- uint ha_open_flags, TABLE *outparam, TABLE_LIST *table_desc,
- MEM_ROOT *mem_root);
+bool open_table(THD *thd, TABLE_LIST *table_list, Open_table_context *ot_ctx);
bool get_key_map_from_key_list(key_map *map, TABLE *table,
List<String> *index_list);
@@ -308,16 +302,14 @@ void close_all_tables_for_name(THD *thd, TABLE_SHARE *share,
TABLE *skip_table);
OPEN_TABLE_LIST *list_open_tables(THD *thd, const char *db, const char *wild);
bool tdc_open_view(THD *thd, TABLE_LIST *table_list, const char *alias,
- const char *cache_key, uint cache_key_length,
- MEM_ROOT *mem_root, uint flags);
+ const char *cache_key, uint cache_key_length, uint flags);
static inline bool tdc_open_view(THD *thd, TABLE_LIST *table_list,
- const char *alias, MEM_ROOT *mem_root,
- uint flags)
+ const char *alias, uint flags)
{
const char *key;
uint key_length= get_table_def_key(table_list, &key);
- return tdc_open_view(thd, table_list, alias, key, key_length, mem_root, flags);
+ return tdc_open_view(thd, table_list, alias, key, key_length, flags);
}
TABLE *find_table_for_mdl_upgrade(THD *thd, const char *db,