diff options
author | Jan Lindström <jplindst@mariadb.org> | 2014-07-22 19:31:45 +0300 |
---|---|---|
committer | Jan Lindström <jplindst@mariadb.org> | 2014-07-22 19:31:45 +0300 |
commit | a1e41e325873bda2071f0d9c5b85778023435c0b (patch) | |
tree | 09e0731723aa156b2723fd00a118c19ae4936e43 /storage/innobase/include/dict0mem.h | |
parent | 15a529e12839579360bd81dd1997502259dd2cbd (diff) | |
download | mariadb-git-a1e41e325873bda2071f0d9c5b85778023435c0b.tar.gz |
MDEV-6470: Restrict number of error messages about persistent statictic tables not found
If mysql.innodb_table_stats or mysql.innodb_index_stats is not found or has
unexpected structure output that error only once and no other error for
every table trying to use them. If they do exists, then print fetch or
recalculation errors only once / table or index.
Diffstat (limited to 'storage/innobase/include/dict0mem.h')
-rw-r--r-- | storage/innobase/include/dict0mem.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/storage/innobase/include/dict0mem.h b/storage/innobase/include/dict0mem.h index eb259020106..58de2c2b3f0 100644 --- a/storage/innobase/include/dict0mem.h +++ b/storage/innobase/include/dict0mem.h @@ -624,6 +624,9 @@ struct dict_index_t{ ulint stat_n_leaf_pages; /*!< approximate number of leaf pages in the index tree */ + bool stats_error_printed; + /*!< has persistent statistics error printed + for this index ? */ /* @} */ rw_lock_t lock; /*!< read-write lock protecting the upper levels of the index tree */ @@ -947,6 +950,9 @@ struct dict_table_t{ /*!< see BG_STAT_* above. Writes are covered by dict_sys->mutex. Dirty reads are possible. */ + bool stats_error_printed; + /*!< Has persistent stats error beein + already printed for this table ? */ /* @} */ /*----------------------*/ /**!< The following fields are used by the |