mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03: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:
@@ -635,6 +635,8 @@ typedef struct system_status_var
|
||||
ulong filesort_range_count;
|
||||
ulong filesort_rows;
|
||||
ulong filesort_scan_count;
|
||||
|
||||
double last_query_cost;
|
||||
} STATUS_VAR;
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user