1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Inverted the option --skip-stat-tables for --stat-tables.

Set it to 0 by default.
Now only the tests that use persistent statistics tables require
starting the server with --stat-tables set on.
This commit is contained in:
Igor Babaev
2012-05-08 16:42:55 -07:00
parent 906c9a93a0
commit 2a1afc29f2
9 changed files with 22 additions and 14 deletions

View File

@ -4625,7 +4625,7 @@ open_and_process_table(THD *thd, LEX *lex, TABLE_LIST *tables,
goto end;
}
if (!opt_no_stat_tables && thd->variables.optimizer_use_stat_tables > 0)
if (opt_with_stat_tables && thd->variables.optimizer_use_stat_tables > 0)
{
if (tables->table && tables->table->s &&
tables->table->s->table_category != TABLE_CATEGORY_SYSTEM)