23#ifndef SQL_THD_INTERNAL_API_INCLUDED
24#define SQL_THD_INTERNAL_API_INCLUDED
66 unsigned int psi_seqnum);
84THD *
create_thd(
bool enable_plugins,
bool background_thread,
bool bound,
329 THD *thd,
void **saved_thd_resource_grp,
330 uint *saved_thd_resource_group_version);
350 THD *thd,
void **saved_thd_resource_grp,
351 uint *saved_thd_resource_group_version);
370 uint *saved_thd_resource_group_version,
371 bool only_if_defunct);
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:33
Definition: partition_info.h:208
durability_properties
Definition: dur_prop.h:30
unsigned int PSI_thread_key
Instrumented thread key.
Definition: psi_thread_bits.h:49
A better implementation of the UNIX ctype(3) library.
uint32 my_thread_id
Definition: my_thread_local.h:33
static char * path
Definition: mysqldump.cc:133
Type inc(Shards< COUNT > &shards, size_t id)
Increment the counter of a shard by 1.
Definition: ut0counter.h:292
Definition: buf0block_hint.cc:29
Performance schema instrumentation interface.
enum_tx_isolation
Definition: handler.h:2984
void thd_get_autoinc(const THD *thd, ulong *off, ulong *inc)
Get the auto_increment_offset auto_increment_increment.
Definition: sql_thd_internal_api.cc:296
void thd_set_thread_stack(THD *thd, const char *stack_start)
Set thread stack in THD object.
Definition: sql_thd_internal_api.cc:185
void destroy_internal_thd(THD *thd)
Definition: sql_thd_internal_api.cc:95
THD * create_thd(bool enable_plugins, bool background_thread, bool bound, PSI_thread_key psi_key, unsigned int psi_seqnum)
Create a THD and do proper initialization of it.
Definition: sql_thd_internal_api.cc:155
bool thd_sqlcom_can_generate_row_events(const THD *thd)
Check if the query may generate row changes which may end up in the binary.
Definition: sql_thd_internal_api.cc:284
bool thd_is_strict_mode(const THD *thd)
Is strict sql_mode set.
Definition: sql_thd_internal_api.cc:319
int mysql_tmpfile_path(const char *path, const char *prefix)
Create a temporary file.
Definition: sql_thd_internal_api.cc:342
size_t thd_get_tmp_table_size(const THD *thd)
Get the tmp_table_size threshold.
Definition: sql_thd_internal_api.cc:301
bool thd_binlog_filter_ok(const THD *thd)
Check if binary logging is filtered for thread's current db.
Definition: sql_thd_internal_api.cc:280
bool thd_is_dd_update_stmt(const THD *thd)
Is statement updating the data dictionary tables.
Definition: sql_thd_internal_api.cc:362
bool thd_is_bootstrap_thread(THD *thd)
Check if the server is in the process of being initialized.
Definition: sql_thd_internal_api.cc:356
bool bind_thread_to_sys_internal_resource_group()
Method to bind system thread to SYS_internal resource group.
Definition: sql_thd_internal_api.cc:405
enum_tx_isolation thd_get_trx_isolation(const THD *thd)
Definition: sql_thd_internal_api.cc:245
int thd_slave_thread(const THD *thd)
Check if a user thread is a replication slave thread.
Definition: sql_thd_internal_api.cc:266
LEX_CSTRING thd_query_unsafe(THD *thd)
Get the current query string for the thread.
Definition: sql_thd_internal_api.cc:251
size_t thd_query_safe(THD *thd, char *buf, size_t buflen)
Get the current query string for the thread.
Definition: sql_thd_internal_api.cc:256
bool thd_is_error(const THD *thd)
Is an error set in the DA.
Definition: sql_thd_internal_api.cc:321
my_thread_id thd_thread_id(const THD *thd)
Definition: sql_thd_internal_api.cc:379
THD * create_internal_thd()
Definition: sql_thd_internal_api.cc:69
void disable_resource_groups(const char *reason)
Method to disable resource groups.
Definition: sql_thd_internal_api.cc:381
durability_properties thd_get_durability_property(const THD *thd)
Gets information on the durability property requested by a thread.
Definition: sql_thd_internal_api.cc:288
int thd_non_transactional_update(const THD *thd)
Check if a user thread is running a non-transactional update.
Definition: sql_thd_internal_api.cc:268
int thd_binlog_format(const THD *thd)
Get the user thread's binary logging format.
Definition: sql_thd_internal_api.cc:273
bool unbind_system_thread_from_thd_resource_group(THD *thd, void **saved_thd_resource_grp, uint *saved_thd_resource_group_version)
Unbind THD (user) resource group attached to a system thread.
Definition: sql_thd_internal_api.cc:532
const CHARSET_INFO * thd_charset(THD *thd)
Definition: sql_thd_internal_api.cc:249
partition_info * thd_get_work_part_info(THD *thd)
Returns the partition_info working copy.
Definition: sql_thd_internal_api.cc:243
bool is_mysql_datadir_path(const char *path)
Test a file path whether it is same as mysql data directory path.
Definition: sql_thd_internal_api.cc:323
bool bind_system_thread_to_thd_resource_group(THD *thd, void **saved_thd_resource_grp, uint *saved_thd_resource_group_version)
Bind THD (user) resource group to a system thread.
Definition: sql_thd_internal_api.cc:481
void destroy_thd(THD *thd, bool clear_pfs_instr)
Cleanup the THD object, remove it from the global list of THDs and delete it.
Definition: sql_thd_internal_api.cc:168
bool release_saved_thd_resource_group(void **saved_thd_resource_grp, uint *saved_thd_resource_group_version, bool only_if_defunct)
Release THD resource group saved with a system thread.
Definition: sql_thd_internal_api.cc:586
void thd_init(THD *thd, char *stack_start)
Set up various THD data for a new connection.
Definition: sql_thd_internal_api.cc:114
Definition: m_ctype.h:382
Definition: mysql_lex_string.h:39
unsigned int uint
Definition: uca9-dump.cc:74