![]() |
MySQL 9.5.0
Source Code Documentation
|
#include "storage/csv/ha_tina.h"#include <fcntl.h>#include <mysql/plugin.h>#include <mysql/psi/mysql_file.h>#include <algorithm>#include "m_string.h"#include "map_helpers.h"#include "my_byteorder.h"#include "my_dbug.h"#include "my_psi_config.h"#include "mysql/psi/mysql_memory.h"#include "nulls.h"#include "sql/derror.h"#include "sql/field.h"#include "sql/sql_class.h"#include "sql/sql_lex.h"#include "sql/system_variables.h"#include "sql/table.h"#include "template_utils.h"Macros | |
| #define | META_BUFFER_SIZE |
| #define | TINA_CHECK_HEADER 254 |
| #define | BLOB_MEMROOT_ALLOC_SIZE 8192 |
| #define | CSV_EXT ".CSV" |
| #define | CSN_EXT ".CSN" |
| #define | CSM_EXT ".CSM" |
Functions | |
| static TINA_SHARE * | get_share (const char *table_name, TABLE *table) |
| static int | free_share (TINA_SHARE *share) |
| static int | read_meta_file (File meta_file, ha_rows *rows) |
| static int | write_meta_file (File meta_file, ha_rows rows, bool dirty) |
| void | tina_get_status (void *param, int concurrent_insert) |
| void | tina_update_status (void *param) |
| bool | tina_check_status (void *param) |
| static handler * | tina_create_handler (handlerton *hton, TABLE_SHARE *table, bool partitioned, MEM_ROOT *mem_root) |
| static bool | tina_is_supported_system_table (const char *db, const char *table_name, bool is_sql_layer_system_table) |
| Check if the given db.tablename is a system table for this SE. More... | |
| static void | init_tina_psi_keys (void) |
| static int | tina_init_func (void *p) |
| static int | tina_done_func (void *) |
| static my_off_t | find_eoln_buff (Transparent_file *data_buff, my_off_t begin, my_off_t end, int *eoln_len) |
| mysql_declare_plugin (csv) | |
Variables | |
| mysql_mutex_t | tina_mutex |
| static unique_ptr< collation_unordered_multimap< string, TINA_SHARE * > > | tina_open_tables |
| static PSI_memory_key | csv_key_memory_tina_share |
| static PSI_memory_key | csv_key_memory_blobroot |
| static PSI_memory_key | csv_key_memory_tina_set |
| static PSI_memory_key | csv_key_memory_row |
| static PSI_mutex_key | csv_key_mutex_tina |
| static PSI_mutex_key | csv_key_mutex_TINA_SHARE_mutex |
| static PSI_mutex_info | all_tina_mutexes [] |
| static PSI_file_key | csv_key_file_metadata |
| static PSI_file_key | csv_key_file_data |
| static PSI_file_key | csv_key_file_update |
| static PSI_file_info | all_tina_files [] |
| static PSI_memory_info | all_tina_memory [] |
| static const char * | ha_tina_exts [] = {CSV_EXT, CSM_EXT, NullS} |
| struct st_mysql_storage_engine | csv_storage_engine |
| mysql_declare_plugin_end | |
| #define BLOB_MEMROOT_ALLOC_SIZE 8192 |
| #define CSM_EXT ".CSM" |
| #define CSN_EXT ".CSN" |
| #define CSV_EXT ".CSV" |
| #define META_BUFFER_SIZE |
| #define TINA_CHECK_HEADER 254 |
|
static |
|
static |
|
static |
|
static |
| mysql_declare_plugin | ( | csv | ) |
| bool tina_check_status | ( | void * | param | ) |
|
static |
|
static |
| void tina_get_status | ( | void * | param, |
| int | concurrent_insert | ||
| ) |
|
static |
|
static |
Check if the given db.tablename is a system table for this SE.
| db | database name. |
| table_name | table name to check. |
| is_sql_layer_system_table | if the supplied db.table_name is a SQL layer system table. |
| true | Given db.table_name is supported system table. |
| false | Given db.table_name is not a supported system table. |
| void tina_update_status | ( | void * | param | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| struct st_mysql_storage_engine csv_storage_engine |
| mysql_declare_plugin_end |
| mysql_mutex_t tina_mutex |
|
static |