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

Function calc_sum_callback

sql/sql_show.cc:4156–4167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4154
4155
4156static my_bool calc_sum_callback(THD *thd, calc_sum_callback_arg *arg)
4157{
4158 arg->count++;
4159 if (!thd->status_in_global)
4160 {
4161 add_to_status(arg->to, &thd->status_var);
4162 arg->to->local_memory_used+= thd->status_var.local_memory_used;
4163 }
4164 if (thd->get_command() != COM_SLEEP)
4165 arg->to->threads_running++;
4166 return 0;
4167}
4168
4169
4170uint calc_sum_of_all_status(STATUS_VAR *to)

Callers

nothing calls this directly

Calls 2

get_commandMethod · 0.80
add_to_statusFunction · 0.70

Tested by

no test coverage detected