23#ifndef DD_KILL_IMMUNIZER_INCLUDED
24#define DD_KILL_IMMUNIZER_INCLUDED
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:33
dd::DD_kill_immunizer * kill_immunizer
When operation on DD tables is in progress then THD is set to kill immune mode.
Definition: sql_class.h:2659
Thd_mem_cnt m_mem_cnt
Controlled memory stats for this session.
Definition: sql_class.h:936
void awake(THD::killed_state state_to_set)
Awake a thread.
Definition: sql_class.cc:1485
mysql_mutex_t LOCK_thd_data
Protects THD data accessed from other threads.
Definition: sql_class.h:1192
std::atomic< killed_state > killed
Definition: sql_class.h:2643
killed_state
Definition: sql_class.h:2636
@ NOT_KILLED
Definition: sql_class.h:2637
void restore_mode()
Restore original memory counter mode.
Definition: sql_class.h:278
void no_error_mode()
Set NO ERROR memory counter mode.
Definition: sql_class.h:282
RAII class for immunizing the THD from kill operations.
Definition: dd_kill_immunizer.h:45
THD::killed_state m_saved_killed_state
Definition: dd_kill_immunizer.h:131
~DD_kill_immunizer()
Definition: dd_kill_immunizer.h:71
bool is_active()
Definition: dd_kill_immunizer.h:104
THD::killed_state m_killed_state
Definition: dd_kill_immunizer.h:120
bool m_is_active
Definition: dd_kill_immunizer.h:139
THD * m_thd
Definition: dd_kill_immunizer.h:114
DD_kill_immunizer * m_saved_kill_immunizer
Definition: dd_kill_immunizer.h:125
void save_killed_state(THD::killed_state state)
Definition: dd_kill_immunizer.h:107
DD_kill_immunizer(THD *thd)
Definition: dd_kill_immunizer.h:47
#define mysql_mutex_assert_owner(M)
Wrapper, to use safe_mutex_assert_owner with instrumented mutexes.
Definition: mysql_mutex.h:111
#define MUTEX_LOCK(NAME, X)
Definition: mutex_lock.h:82
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:42