23#ifndef DD_INFO_SCHEMA_TABLESPACE_STATS_INCLUDED
24#define DD_INFO_SCHEMA_TABLESPACE_STATS_INCLUDED
32namespace info_schema {
106 const String &file_name_ptr,
const String &engine_name_ptr,
107 const char *ts_se_private_data);
192 const String &file_name_ptr,
193 const String &engine_name_ptr,
194 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:166
const char * ptr() const
Definition: sql_string.h:248
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:33
The class hold dynamic table statistics for a table.
Definition: tablespace_stats.h:63
bool check_error_for_key(const String &tablespace_name, const String &file_name)
Check if we have seen a error.
Definition: tablespace_stats.h:172
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:75
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:147
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:86
bool m_found_error
Definition: tablespace_stats.h:205
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:122
String_type m_key
Definition: tablespace_stats.h:202
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:159
void invalidate_cache(void)
Definition: tablespace_stats.h:110
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:139
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:192
ha_tablespace_statistics m_stats
Definition: tablespace_stats.h:209
Tablespace_statistics()
Definition: tablespace_stats.h:65
void get_stat(enum_tablespace_stats_type stype, ulonglong *result)
Return statistics of the a given type.
Definition: tablespace_stats.cc:34
bool is_valid() const
Predicate for determinig if cache is valid.
Definition: tablespace_stats.h:198
Definition: handler.h:7357
unsigned long long int ulonglong
Definition: my_inttypes.h:55
struct stats stats
Definition: mysqlslap.cc:235
enum_tablespace_stats_type
Definition: tablespace_stats.h:35
@ TS_LOGFILE_GROUP_NUMBER
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:42
Char_string_template< String_type_allocator > String_type
Definition: string_type.h:50
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:93
Our own string classes, used pervasively throughout the executor.
Definition: mysqlslap.cc:237