summaryrefslogtreecommitdiff
path: root/sql/sql_base.h
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2012-09-08 12:04:31 -0700
committerIgor Babaev <igor@askmonty.org>2012-09-08 12:04:31 -0700
commitb3f09e8aa04aa3d2d2b86588eddd46badb7e916f (patch)
tree959358cacf51917fbb7a85cde033d9cb3d2fb45a /sql/sql_base.h
parentcfde11fc4f02e701b856311769d70ccc47d16539 (diff)
downloadmariadb-git-b3f09e8aa04aa3d2d2b86588eddd46badb7e916f.tar.gz
Fixed bug mdev-504.
Opening system statistical tables and reading statistical data from them for a regular table should be done after opening and locking this regular table. No test case is provided with this patch.
Diffstat (limited to 'sql/sql_base.h')
-rw-r--r--sql/sql_base.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_base.h b/sql/sql_base.h
index a8d4951981e..698c4a012e7 100644
--- a/sql/sql_base.h
+++ b/sql/sql_base.h
@@ -312,7 +312,7 @@ int dynamic_column_error_message(enum_dyncol_func_result rc);
/* open_and_lock_tables with optional derived handling */
int open_and_lock_tables_derived(THD *thd, TABLE_LIST *tables, bool derived);
-int read_statistics_for_table(THD *thd, TABLE *table);
+int read_statistics_for_tables_if_needed(THD *thd, TABLE_LIST *tables);
int collect_statistics_for_table(THD *thd, TABLE *table);
int alloc_statistics_for_table_share(THD* thd, TABLE_SHARE *share,
bool is_safe);