mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Addressed all remaining issues from the review of the patch
that introduced engine independent persistent statistics. In particular: - added an enumeration type for possible values of the system variable use_stat_tables - renamed KEY::real_rec_per_key to KEY::actual_rec_per_key - optimized the collection of statistical data for any primary key defined only on one column.
This commit is contained in:
@ -29,6 +29,7 @@
|
||||
#include "sql_parse.h" // check_table_access
|
||||
#include "strfunc.h"
|
||||
#include "sql_admin.h"
|
||||
#include "sql_statistics.h"
|
||||
|
||||
/* Prepare, run and cleanup for mysql_recreate_table() */
|
||||
|
||||
@ -718,7 +719,7 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables,
|
||||
if (compl_result_code == HA_ADMIN_OK &&
|
||||
operator_func == &handler::ha_analyze &&
|
||||
table->table->s->table_category == TABLE_CATEGORY_USER &&
|
||||
(thd->variables.use_stat_tables > 0 ||
|
||||
(get_use_stat_tables_mode(thd) > NEVER ||
|
||||
lex->with_persistent_for_clause))
|
||||
{
|
||||
if (!(compl_result_code=
|
||||
|
Reference in New Issue
Block a user