InnoDB Plugin
1.0
|
Functions | |
UNIV_INLINE void | dict_stats_set_persistent (dict_table_t *table, ibool ps_on, ibool ps_off) |
UNIV_INLINE ibool | dict_stats_is_persistent_enabled (const dict_table_t *table) |
UNIV_INLINE void | dict_stats_auto_recalc_set (dict_table_t *table, ibool auto_recalc_on, ibool auto_recalc_off) |
UNIV_INLINE ibool | dict_stats_auto_recalc_is_enabled (const dict_table_t *table) |
UNIV_INLINE void | dict_stats_init (dict_table_t *table) |
UNIV_INLINE void | dict_stats_deinit (dict_table_t *table) |
Code used for calculating and manipulating table statistics.
Created Jan 23, 2012 Vasil Dimov
UNIV_INLINE ibool dict_stats_auto_recalc_is_enabled | ( | const dict_table_t * | table | ) |
Check whether auto recalc is enabled for a given table.
table | in: table |
UNIV_INLINE void dict_stats_auto_recalc_set | ( | dict_table_t * | table, |
ibool | auto_recalc_on, | ||
ibool | auto_recalc_off | ||
) |
Set the auto recalc flag for a given table (only honored for a persistent stats enabled table). The flag is set only in the in-memory table object and is not saved in InnoDB files. It will be read from the .frm file upon first open from MySQL after a server restart.
table | in/out: table |
auto_recalc_on | in: explicitly enabled |
auto_recalc_off | in: explicitly disabled |
UNIV_INLINE void dict_stats_deinit | ( | dict_table_t * | table | ) |
Deinitialize table's stats after the last close of the table. This is used to detect "FLUSH TABLE" and refresh the stats upon next open.
table | in/out: table |
UNIV_INLINE void dict_stats_init | ( | dict_table_t * | table | ) |
Initialize table's stats for the first time when opening a table.
table | in/out: table |
UNIV_INLINE ibool dict_stats_is_persistent_enabled | ( | const dict_table_t * | table | ) |
Check whether persistent statistics is enabled for a given table.
table | in: table |
UNIV_INLINE void dict_stats_set_persistent | ( | dict_table_t * | table, |
ibool | ps_on, | ||
ibool | ps_off | ||
) |
Set the persistent statistics flag for a given table. This is set only in the in-memory table object and is not saved on disk. It will be read from the .frm file upon first open from MySQL after a server restart.
table | in/out: table |
ps_on | in: persistent stats explicitly enabled |
ps_off | in: persistent stats explicitly disabled |