24#ifndef DD__SDI_FILE_INCLUDED
25#define DD__SDI_FILE_INCLUDED
A typesafe replacement for DYNAMIC_ARRAY.
Definition: prealloced_array.h:71
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
Definition: buf0block_hint.cc:30
borrowable::session_track::Schema< true > Schema
Definition: classic_protocol_session_track.h:288
bool drop_tbl_sdi(const dd::Table &table, const dd::Schema &schema)
Removes sdi file for a table.
Definition: sdi_file.cc:303
bool check_data_files_exist(const dd::String_type &schema_name, const dd::String_type &table_name)
Check that the MYD and MYI files for table exists.
Definition: sdi_file.cc:354
const size_t FILENAME_PREFIX_CHARS
Number of character (not bytes) of a tablename which will contrubute to the sdi file name.
Definition: sdi_file.h:49
bool load(THD *, const dd::String_type &fname, dd::String_type *buf)
Read an sdi file from disk and store in a buffer.
Definition: sdi_file.cc:308
String_type sdi_filename(Object_id id, const String_type &entity_name, const String_type &schema)
Formats an sdi filename according to the mysql conventions for an entity name and schema name,...
Definition: sdi_file.cc:252
bool remove(const String_type &fname)
Remove a file name from the file system.
Definition: sdi_file.cc:285
const String_type EXT
File name extension for sdi files.
Definition: sdi_file.h:52
Prealloced_array< Path_type, 3 > Paths_type
Typedef for container type to use as out-parameter when expanding sdi file patterns into paths.
Definition: sdi_file.h:120
bool store_tbl_sdi(const dd::Sdi_type &sdi, const dd::Table &table, const dd::Schema &schema)
Stores sdi for table in a file.
Definition: sdi_file.cc:279
std::pair< dd::String_type, bool > Path_type
Instantiation of std::pair to represent the full path to an sdi file.
Definition: sdi_file.h:114
bool expand_pattern(THD *thd, const LEX_STRING &pattern, Paths_type *paths)
Expand an sdi filename pattern into the set of full paths that match.
Definition: sdi_file.cc:340
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:43
unsigned long long Object_id
Definition: object_id.h:31
String_type Sdi_type
Definition: sdi.h:48
Char_string_template< String_type_allocator > String_type
Definition: string_type.h:51
const char * table_name
Definition: rules_table_service.cc:56
Exposes SDI-related functionality to the rest of the dictionary code.
Definition: mysql_lex_string.h:40
Definition: mysql_lex_string.h:35
handlerton is a singleton structure - one instance per storage engine - to provide access to storage ...
Definition: handler.h:2740