37#ifndef HA_INNODB_PROTOTYPES_H
38#define HA_INNODB_PROTOTYPES_H
225 std::chrono::steady_clock::duration value);
325 MY_ATTRIBUTE((format(printf, 4, 5)));
480#define innobase_is_v_fld(field) ((field)->gcol_info && !(field)->stored_in_db)
A granted metadata lock.
Definition: mdl.h:985
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 defining a handle to an InnoDB table.
Definition: ha_innodb.h:87
static constexpr uint16_t binary_type()
Definition: classic_query_param.cc:36
constexpr DWORD buf_size
Definition: create_def.cc:229
durability_properties
Definition: dur_prop.h:31
void innobase_commit_low(trx_t *trx)
Commits a transaction in an InnoDB database.
Definition: ha_innodb.cc:5954
const char * FORCE_RECOVERY_MSG
Definition: ha_innodb.cc:24317
const char * ERROR_CREATING_MSG
Definition: ha_innodb.cc:24321
size_t thd_ddl_threads(THD *thd) noexcept
Definition: ha_innodb.cc:2024
THD * thd_trx_arbitrate(THD *requestor, THD *holder)
Check if the transaction can be rolled back.
Definition: ha_innodb.cc:1788
bool thd_is_query_block(const THD *thd)
Returns true if the thread is executing a SELECT statement.
Definition: ha_innodb.cc:1923
bool innobase_should_madvise_buf_pool()
Checks sys_vars and determines if allocator should mark large memory segments with MADV_DONTDUMP.
Definition: ha_innodb.cc:1932
void innodb_set_buf_pool_size(long long buf_pool_size)
Update the system variable with the given value of the InnoDB buffer pool size.
Definition: ha_innodb.cc:17181
void innobase_disable_core_dump()
Make sure that core file will not be generated, as generating a core file might violate our promise t...
Definition: ha_innodb.cc:1939
void thd_set_lock_wait_time(THD *thd, std::chrono::steady_clock::duration value)
Set the time waited for the lock for the current query.
Definition: ha_innodb.cc:1962
int thd_trx_priority(THD *thd)
Definition: ha_innodb.cc:1807
std::chrono::system_clock::time_point thd_start_time(THD *thd)
Get the thread start time.
Definition: ha_innodb.cc:1823
void ib_errf(THD *thd, ib_log_level_t level, uint32_t code, const char *format,...)
Use this when the args are first converted to a formatted string and then passed to the format string...
Definition: ha_innodb.cc:24255
uint innobase_convert_to_filename_charset(char *to, const char *from, ulint len)
Definition: ha_innodb.cc:24340
const char * INNODB_PARAMETERS_MSG
Definition: ha_innodb.cc:24333
bool thd_is_replication_slave_thread(THD *thd)
Returns true if the thread is the replication thread on the slave server.
Definition: ha_innodb.cc:1761
ulint innobase_get_at_most_n_mbchars(ulint charset_id, ulint prefix_len, ulint data_len, const char *str)
This function is used to find the storage length in bytes of the first n characters for prefix indexe...
Definition: ha_innodb.cc:20182
const char * OPERATING_SYSTEM_ERROR_MSG
Definition: ha_innodb.cc:24324
const char * TROUBLESHOOT_DATADICT_MSG
Definition: ha_innodb.cc:24313
void innobase_mysql_print_thd(FILE *f, THD *thd, uint max_query_len)
Prints info of a THD object (== user session thread) to the given file.
Definition: ha_innodb.cc:2277
void innobase_casedn_str(char *a)
Makes all characters in a NUL-terminated UTF-8 string lower case.
Definition: ha_innodb.cc:2397
const char * thd_innodb_tmpdir(THD *thd)
Get the value of innodb_tmpdir.
Definition: ha_innodb.cc:1971
ICP_RESULT innobase_index_cond(ha_innobase *h)
InnoDB index push-down condition check defined in ha_innodb.cc.
Definition: ha_innodb.cc:23740
std::chrono::seconds thd_lock_wait_timeout(THD *thd)
Returns the lock wait timeout for the current connection.
Definition: ha_innodb.cc:1956
const char * innobase_get_err_msg(int error_code)
Get the error message format string.
Definition: ha_innodb.cc:2295
const char * TROUBLESHOOTING_MSG
Definition: ha_innodb.cc:24309
bool thd_has_edited_nontrans_tables(THD *thd)
Returns true if the transaction this thread is processing has edited non-transactional tables.
Definition: ha_innodb.cc:1916
void innobase_quote_identifier(FILE *file, trx_t *trx, const char *id)
Quote a standard SQL identifier like tablespace, index or column name.
Definition: ha_innodb.cc:3023
ulint innobase_get_table_cache_size(void)
Get the current setting of the table_cache_size global parameter.
Definition: ha_innodb.cc:2444
const char * server_get_hostname()
Returns the NUL terminated value of glob_hostname.
Definition: ha_innodb.cc:1909
void innobase_casedn_path(char *a)
Makes all characters in a NUL-terminated UTF-8 path string lower case.
Definition: ha_innodb.cc:2403
char ** thd_innodb_interpreter_output(THD *thd)
Obtain the value of the latest output from InnoDB Interpreter/Tester module (ib::Tester).
Definition: ha_innodb.cc:23420
const char * FOREIGN_KEY_CONSTRAINTS_MSG
Definition: ha_innodb.cc:24328
ib_log_level_t
Corresponds to Sql_condition:enum_warning_level.
Definition: ha_prototypes.h:303
@ IB_LOG_LEVEL_ERROR
Definition: ha_prototypes.h:306
@ IB_LOG_LEVEL_FATAL
Definition: ha_prototypes.h:307
@ IB_LOG_LEVEL_INFO
Definition: ha_prototypes.h:304
@ IB_LOG_LEVEL_WARN
Definition: ha_prototypes.h:305
void ib_warn_row_too_big(const dict_table_t *table)
Definition: ha_innodb.cc:24371
enum durability_properties thd_requested_durability(const THD *thd)
Gets information on the durability property requested by thread.
Definition: ha_innodb.cc:1769
ulint innobase_raw_format(const char *data, ulint data_len, ulint charset_coll, char *buf, ulint buf_size)
Formats the raw data in "data" (in InnoDB on-disk format) that is of type DATA_(CHAR|VARCHAR|MYSQL|VA...
Definition: ha_innodb.cc:2542
void innobase_format_name(char *buf, ulint buflen, const char *name)
A wrapper function of innobase_convert_name(), convert a table name to the MySQL system_charset_info ...
Definition: ha_innodb.cc:3112
trx_t * check_trx_exists(THD *thd)
Gets the InnoDB transaction handle for a MySQL handler object, creates an InnoDB transaction struct i...
Definition: ha_innodb.cc:2777
int innobase_nocase_compare(const void *cs, const char *s1, const char *s2)
Compare two character strings case insensitively according to their charset.
Definition: ha_innodb.cc:8014
bool innobase_check_identifier_length(const char *id)
Definition: ha_innodb.cc:2336
ulint get_innobase_type_from_mysql_type(ulint *unsigned_flag, const void *f)
Converts a MySQL type to an InnoDB type.
Definition: ha_innodb.cc:8154
char * innobase_convert_name(char *buf, ulint buflen, const char *id, ulint idlen, THD *thd)
Convert a table name to the MySQL system_charset_info (UTF-8).
Definition: ha_innodb.cc:3080
ulint get_innobase_type_from_mysql_dd_type(ulint *unsigned_flag, ulint *binary_type, ulint *charset_no, dd::enum_column_types dd_type, const CHARSET_INFO *field_charset, bool is_unsigned)
Converts a MySQL data-dictionary type to an InnoDB type.
Definition: ha_innodb.cc:8284
void innobase_get_cset_width(ulint cset, ulint *mbminlen, ulint *mbmaxlen)
Get the variable length bounds of the given character set.
Definition: ha_innodb.cc:2304
void ib_senderrf(THD *thd, ib_log_level_t level, uint32_t code,...)
Use this when the args are passed to the format string from messages_to_clients.txt directly as is.
Definition: ha_innodb.cc:24167
char ** thd_innodb_interpreter(THD *thd)
Obtain the latest command executed by InnoDB Interpreter/Tester module (ib::Tester).
Definition: ha_innodb.cc:23425
ulint innobase_get_lower_case_table_names(void)
Get the current setting of the lower_case_table_names global parameter from mysqld....
Definition: ha_innodb.cc:2451
ulong thd_parallel_read_threads(THD *thd)
Return the number of read threads for this session.
Definition: ha_innodb.cc:2018
ulonglong innobase_next_autoinc(ulonglong current, ulonglong need, ulonglong step, ulonglong offset, ulonglong max_value)
Compute the next autoinc value.
Definition: ha_innodb.cc:2660
const CHARSET_INFO * innobase_get_charset(THD *thd)
Determines the connection character set.
Definition: ha_innodb.cc:2410
bool thd_trx_is_read_only(THD *thd)
Returns true if transaction should be flagged as read-only.
Definition: ha_innodb.cc:1777
uint innobase_convert_to_system_charset(char *to, const char *from, ulint len, uint *errors)
Definition: ha_innodb.cc:24356
int innobase_strcasecmp(const char *a, const char *b)
Compares NUL-terminated UTF-8 strings case insensitively.
Definition: ha_innodb.cc:2357
const char * innobase_get_stmt_unsafe(THD *thd, size_t *length)
Determines the current SQL statement.
Definition: ha_innodb.cc:2421
size_t innobase_get_stmt_safe(THD *thd, char *buf, size_t buflen)
Determines the current SQL statement.
Definition: ha_innodb.cc:2436
const char * innobase_basename(const char *path_name)
Strip dir name from a full path name and return only the file name.
Definition: ha_innodb.cc:2388
ulong thd_ddl_buffer_size(THD *thd)
Return the maximum buffer size to use for DDL.
Definition: ha_innodb.cc:2022
bool thd_trx_is_auto_commit(THD *thd)
Check if the transaction is an auto-commit transaction.
Definition: ha_innodb.cc:1814
enum icp_result ICP_RESULT
Values returned by index_cond_func_xxx functions.
unsigned long long int ulonglong
Definition: my_inttypes.h:56
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1081
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
Definition: buf0block_hint.cc:30
constexpr value_type is_unsigned
Definition: classic_protocol_constants.h:273
const std::string FILE("FILE")
Definition: commit_order_queue.h:34
enum_column_types
Definition: column.h:53
bool length(const dd::Spatial_reference_system *srs, const Geometry *g1, double *length, bool *null) noexcept
Computes the length of linestrings and multilinestrings.
Definition: length.cc:76
Definition: ha_prototypes.h:342
void send_errno_error(THD *thd, int err, const std::string &context)
Sends an error to the client about low-level errno causing high-level err in the specified context.
Definition: ha_prototypes.h:349
void send_errno_warn(THD *thd, int err, const std::string &context)
Sends a warning to the client about low-level errno causing high-level err in the specified context.
Definition: ha_prototypes.h:360
static Value err()
Create a Value object that represents an error condition.
Definition: json_binary.cc:927
case opt name
Definition: sslopt-case.h:29
Definition: m_ctype.h:421
Data structure for a database table.
Definition: dict0mem.h:1909
Definition: trx0trx.h:684
double seconds()
Definition: task.cc:310
Version control for database, common definitions, and include files.
unsigned long int ulint
Definition: univ.i:406