summaryrefslogtreecommitdiff
path: root/sql/sql_base.h
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2014-06-20 11:34:24 +0200
committerSergei Golubchik <serg@mariadb.org>2014-06-20 15:47:44 +0200
commitce6a63ec41160ef6b7c0110d3f40aea79b8f3129 (patch)
tree4be27ef7152fd4f557bb09ad8943893f2d62ea1c /sql/sql_base.h
parentcc5b3998b6767523792f7e4ec8c9a100db2d06ce (diff)
downloadmariadb-git-ce6a63ec41160ef6b7c0110d3f40aea79b8f3129.tar.gz
MDEV-4260 Don't create frm files for temporary tables
* Don't write frm for tmp tables * pass frm image down to open_table_uncached, when possible * don't use truncate-by-recreate for temp tables - cannot recreate without frm, and delete_all_rows is faster anyway
Diffstat (limited to 'sql/sql_base.h')
-rw-r--r--sql/sql_base.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_base.h b/sql/sql_base.h
index 61442843a39..6f8e9c1c03b 100644
--- a/sql/sql_base.h
+++ b/sql/sql_base.h
@@ -127,7 +127,8 @@ bool open_new_frm(THD *thd, TABLE_SHARE *share, const char *alias,
bool get_key_map_from_key_list(key_map *map, TABLE *table,
List<String> *index_list);
-TABLE *open_table_uncached(THD *thd, handlerton *hton, const char *path,
+TABLE *open_table_uncached(THD *thd, handlerton *hton,
+ LEX_CUSTRING *frm, const char *path,
const char *db, const char *table_name,
bool add_to_temporary_tables_list,
bool open_in_engine);