summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc21
1 files changed, 21 insertions, 0 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index 33a59e540f8..a60de3e3e55 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -1561,6 +1561,27 @@ int mysql_optimize_table(THD* thd, TABLE_LIST* tables, HA_CHECK_OPT* check_opt)
/*
+ Assigned specified indexes for a table into key cache
+
+ SYNOPSIS
+ mysql_assign_to_keycache()
+ thd Thread object
+ tables Table list (one table only)
+
+ RETURN VALUES
+ 0 ok
+ -1 error
+*/
+
+int mysql_assign_to_keycache(THD* thd, TABLE_LIST* tables)
+{
+ DBUG_ENTER("mysql_assign_to_keycache");
+ DBUG_RETURN(mysql_admin_table(thd, tables, 0,
+ "assign_to_keycache", TL_WRITE, 0, 0, 0,
+ &handler::assign_to_keycache));
+}
+
+/*
Preload specified indexes for a table into key cache
SYNOPSIS