| 4154 | |
| 4155 | |
| 4156 | static 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 | |
| 4170 | uint calc_sum_of_all_status(STATUS_VAR *to) |
nothing calls this directly
no test coverage detected