mirror of
https://github.com/MariaDB/server.git
synced 2026-04-30 12:15:32 +02:00
cleanup
include/my_sys.h: sort_dynamic() mysys/my_once.c: MY_ZEROFILL support in my_once_alloc plugin/fulltext/Makefile.am: no lib prefix for modules. really build .so scripts/mysql_create_system_tables.sh: remove obsolete syntax (and warnings) sql/sql_parse.cc: don't call add_to_status/bzero in a loop
This commit is contained in:
parent
c81a379c5b
commit
88469c807e
5 changed files with 18 additions and 18 deletions
|
|
@ -6642,17 +6642,14 @@ static void refresh_status(void)
|
|||
{
|
||||
pthread_mutex_lock(&LOCK_status);
|
||||
for (struct show_var_st *ptr=status_vars; ptr->name; ptr++)
|
||||
{
|
||||
if (ptr->type == SHOW_LONG)
|
||||
if (ptr->type == SHOW_LONG) // note that SHOW_LONG_NOFLUSH variables are not reset
|
||||
*(ulong*) ptr->value= 0;
|
||||
else if (ptr->type == SHOW_LONG_STATUS)
|
||||
{
|
||||
THD *thd= current_thd;
|
||||
/* We must update the global status before cleaning up the thread */
|
||||
add_to_status(&global_status_var, &thd->status_var);
|
||||
bzero((char*) &thd->status_var, sizeof(thd->status_var));
|
||||
}
|
||||
}
|
||||
|
||||
/* We must update the global status before cleaning up the thread */
|
||||
THD *thd= current_thd;
|
||||
add_to_status(&global_status_var, &thd->status_var);
|
||||
bzero((char*) &thd->status_var, sizeof(thd->status_var));
|
||||
|
||||
/* Reset the counters of all key caches (default and named). */
|
||||
process_key_caches(reset_key_cache_counters);
|
||||
pthread_mutex_unlock(&LOCK_status);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue