24#ifndef DD_KILL_IMMUNIZER_INCLUDED
25#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:34
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:2683
Thd_mem_cnt m_mem_cnt
Controlled memory stats for this session.
Definition: sql_class.h:937
void awake(THD::killed_state state_to_set)
Awake a thread.
Definition: sql_class.cc:1487
mysql_mutex_t LOCK_thd_data
Protects THD data accessed from other threads.
Definition: sql_class.h:1193
std::atomic< killed_state > killed
Definition: sql_class.h:2667
killed_state
Definition: sql_class.h:2660
@ NOT_KILLED
Definition: sql_class.h:2661
void restore_mode()
Restore original memory counter mode.
Definition: sql_class.h:279
void no_error_mode()
Set NO ERROR memory counter mode.
Definition: sql_class.h:283
RAII class for immunizing the THD from kill operations.
Definition: dd_kill_immunizer.h:46
THD::killed_state m_saved_killed_state
Definition: dd_kill_immunizer.h:132
~DD_kill_immunizer()
Definition: dd_kill_immunizer.h:72
bool is_active()
Definition: dd_kill_immunizer.h:105
THD::killed_state m_killed_state
Definition: dd_kill_immunizer.h:121
bool m_is_active
Definition: dd_kill_immunizer.h:140
THD * m_thd
Definition: dd_kill_immunizer.h:115
DD_kill_immunizer * m_saved_kill_immunizer
Definition: dd_kill_immunizer.h:126
void save_killed_state(THD::killed_state state)
Definition: dd_kill_immunizer.h:108
DD_kill_immunizer(THD *thd)
Definition: dd_kill_immunizer.h:48
#define mysql_mutex_assert_owner(M)
Wrapper, to use safe_mutex_assert_owner with instrumented mutexes.
Definition: mysql_mutex.h:112
#define MUTEX_LOCK(NAME, X)
Definition: mutex_lock.h:83
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:43