MCPcopy Create free account
hub / github.com/MariaDB/server / thd_kill_level

Function thd_kill_level

sql/sql_class.cc:5164–5180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5162 - add if (!thd) thd= current_thd here
5163*/
5164extern "C" enum thd_kill_levels thd_kill_level(const MYSQL_THD thd)
5165{
5166 DBUG_ASSERT(thd);
5167
5168 if (likely(thd->killed == NOT_KILLED))
5169 {
5170 Apc_target *apc_target= (Apc_target*) &thd->apc_target;
5171 if (unlikely(apc_target->have_apc_requests()))
5172 {
5173 if (thd == current_thd)
5174 apc_target->process_apc_requests(false);
5175 }
5176 return THD_IS_NOT_KILLED;
5177 }
5178
5179 return thd->killed & KILL_HARD_BIT ? THD_ABORT_ASAP : THD_ABORT_SOFTLY;
5180}
5181
5182
5183/**

Callers 13

handler_index_cond_checkFunction · 0.85
awake_no_mutexMethod · 0.85
thd_killedFunction · 0.85
set_archiveMethod · 0.85
resizeMethod · 0.85
trx_is_interruptedFunction · 0.85
checkpoint_now_setFunction · 0.85
wait_availableMethod · 0.85

Calls 2

have_apc_requestsMethod · 0.80
process_apc_requestsMethod · 0.80

Tested by

no test coverage detected