24#ifndef DD_INFO_SCHEMA_TABLESPACE_STATS_INCLUDED
25#define DD_INFO_SCHEMA_TABLESPACE_STATS_INCLUDED
33namespace info_schema {
107 const String &file_name_ptr,
const String &engine_name_ptr,
108 const char *ts_se_private_data);
193 const String &file_name_ptr,
194 const String &engine_name_ptr,
195 const char *ts_se_private_data);
Using this class is fraught with peril, and you need to be very careful when doing so.
Definition: sql_string.h:167
const char * ptr() const
Definition: sql_string.h:249
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
The class hold dynamic table statistics for a table.
Definition: tablespace_stats.h:64
bool check_error_for_key(const String &tablespace_name, const String &file_name)
Check if we have seen a error.
Definition: tablespace_stats.h:173
bool is_stat_cached(const String &tablespace_name, const String &file_name)
Check if the stats are cached for given tablespace_name and file_name.
Definition: tablespace_stats.h:76
void set_stat_cached(const String &tablespace_name, const String &file_name)
Mark the cache as valid for a given table.
Definition: tablespace_stats.h:148
void cache_stats(const String &tablespace_name, const String &file_name, ha_tablespace_statistics &stats)
Store the statistics form the given handler.
Definition: tablespace_stats.h:87
bool m_found_error
Definition: tablespace_stats.h:206
void mark_as_error_found(const String &tablespace_name, const String &file_name)
Mark that error was found for the given key.
Definition: tablespace_stats.h:123
String_type m_key
Definition: tablespace_stats.h:203
String_type form_key(const String &tablespace_name, const String &file_name)
Build a key representing the table for which stats are cached.
Definition: tablespace_stats.h:160
void invalidate_cache(void)
Definition: tablespace_stats.h:111
bool read_stat(THD *thd, const String &tablespace_name_ptr, const String &file_name_ptr, const String &engine_name_ptr, const char *ts_se_private_data)
Read dynamic tablespace statistics from SE API OR by reading cached statistics from Query_block.
Definition: tablespace_stats.cc:140
bool read_stat_from_SE(THD *thd, const String &tablespace_name_ptr, const String &file_name_ptr, const String &engine_name_ptr, const char *ts_se_private_data)
Read dynamic tablespace statistics from SE API.
Definition: tablespace_stats.cc:193
ha_tablespace_statistics m_stats
Definition: tablespace_stats.h:210
Tablespace_statistics()
Definition: tablespace_stats.h:66
void get_stat(enum_tablespace_stats_type stype, ulonglong *result)
Return statistics of the a given type.
Definition: tablespace_stats.cc:35
bool is_valid() const
Predicate for determinig if cache is valid.
Definition: tablespace_stats.h:199
Definition: handler.h:7754
unsigned long long int ulonglong
Definition: my_inttypes.h:56
struct stats stats
Definition: mysqlslap.cc:238
enum_tablespace_stats_type
Definition: tablespace_stats.h:36
@ TS_LOGFILE_GROUP_NUMBER
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:43
Char_string_template< String_type_allocator > String_type
Definition: string_type.h:51
std::string file_name(Log_file_id file_id)
Provides name of the log file with the given file id, e.g.
Definition: log0pre_8_0_30.cc:94
Our own string classes, used pervasively throughout the executor.
Definition: mysqlslap.cc:240