InnoDB Plugin  1.0
Functions
dict0stats.ic File Reference
#include "univ.i"
#include "dict0dict.h"
#include "dict0types.h"
#include "srv0srv.h"
Include dependency graph for dict0stats.ic:
This graph shows which files directly or indirectly include this file:

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)

Detailed Description

Code used for calculating and manipulating table statistics.

Created Jan 23, 2012 Vasil Dimov

Function Documentation

UNIV_INLINE ibool dict_stats_auto_recalc_is_enabled ( const dict_table_t table)

Check whether auto recalc is enabled for a given table.

Returns
TRUE if enabled, FALSE otherwise
Parameters
tablein: 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.

Parameters
tablein/out: table
auto_recalc_onin: explicitly enabled
auto_recalc_offin: 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.

Parameters
tablein/out: table
UNIV_INLINE void dict_stats_init ( dict_table_t table)

Initialize table's stats for the first time when opening a table.

Parameters
tablein/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.

Returns
TRUE if enabled, FALSE otherwise
Parameters
tablein: 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.

Parameters
tablein/out: table
ps_onin: persistent stats explicitly enabled
ps_offin: persistent stats explicitly disabled