mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Change Last_query_cost status variable from global to thread-local.
This commit is contained in:
@ -3739,8 +3739,7 @@ choose_plan(JOIN *join, table_map join_tables)
|
||||
Don't update last_query_cost for 'show status' command
|
||||
*/
|
||||
if (join->thd->lex->orig_sql_command != SQLCOM_SHOW_STATUS)
|
||||
last_query_cost= join->best_read;
|
||||
|
||||
join->thd->status_var.last_query_cost= join->best_read;
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user