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

MWL#248: added the option skip-stat-tables.

This commit is contained in:
Igor Babaev
2012-01-09 21:14:34 -08:00
parent d0dc6e07f6
commit 6c1aab92d2
4 changed files with 12 additions and 3 deletions

View File

@ -4855,7 +4855,7 @@ int open_tables(THD *thd, TABLE_LIST **start, uint *counter, uint flags)
parent_l->next_global= *parent_l->table->child_last_l;
}
if (thd->variables.optimizer_use_stat_tables > 0)
if (!opt_no_stat_tables && thd->variables.optimizer_use_stat_tables > 0)
{
if (tables->table && tables->table->s &&
tables->table->s->table_category != TABLE_CATEGORY_SYSTEM)