mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 15:45:33 +02:00
Change Last_query_cost status variable from global to thread-local.
sql/mysql_priv.h: Changed last_query_cost status variable from global to thread-local. sql/mysqld.cc: Changed last_query_cost status variable from global to thread-local. sql/sql_class.cc: Changed last_query_cost status variable from global to thread-local. sql/sql_class.h: Changed last_query_cost status variable from global to thread-local. sql/sql_select.cc: Changed last_query_cost status variable from global to thread-local. sql/sql_show.cc: All SHOW_DOUBLE-type status variables are now assumed to be thread-local (there is only one currently, last_query_cost, and this cset makes it thread-local)
This commit is contained in:
parent
af38185d9f
commit
83062698fd
6 changed files with 6 additions and 5 deletions
|
|
@ -1358,6 +1358,7 @@ static bool show_status_array(THD *thd, const char *wild,
|
|||
}
|
||||
case SHOW_DOUBLE:
|
||||
{
|
||||
value= ((char *) status_var + (ulong) value);
|
||||
end= buff + sprintf(buff, "%f", *(double*) value);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue