diff options
Diffstat (limited to 'storage/xtradb/dict/dict0crea.c')
-rw-r--r-- | storage/xtradb/dict/dict0crea.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/xtradb/dict/dict0crea.c b/storage/xtradb/dict/dict0crea.c index 258bf77d1fc..a6d0e11740a 100644 --- a/storage/xtradb/dict/dict0crea.c +++ b/storage/xtradb/dict/dict0crea.c @@ -1245,13 +1245,13 @@ dict_create_index_step( goto function_exit; } - if (srv_use_sys_stats_table) { + if (srv_use_sys_stats_table + && !((node->table->flags >> DICT_TF2_SHIFT) & DICT_TF2_TEMPORARY)) { node->state = INDEX_BUILD_STATS_COLS; } else { node->state = INDEX_CREATE_INDEX_TREE; } } - if (node->state == INDEX_BUILD_STATS_COLS) { if (node->stats_no <= dict_index_get_n_unique(node->index)) { |