1
0
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:
sergefp@mysql.com
2005-05-18 05:39:10 +02:00
parent 25cf90edbd
commit b6179919f3
6 changed files with 6 additions and 5 deletions

View File

@ -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;
}