diff options
author | Igor Babaev <igor@askmonty.org> | 2012-09-08 12:04:31 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2012-09-08 12:04:31 -0700 |
commit | b3f09e8aa04aa3d2d2b86588eddd46badb7e916f (patch) | |
tree | 959358cacf51917fbb7a85cde033d9cb3d2fb45a /sql/sql_base.h | |
parent | cfde11fc4f02e701b856311769d70ccc47d16539 (diff) | |
download | mariadb-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.h | 2 |
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); |