mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
MDEV-4981: Account for queries handled by query-cache in USER_STATISTICS (and in HOST_STATISTICS)
fix for SP & PS
This commit is contained in:
@@ -5791,7 +5791,7 @@ void mysql_parse(THD *thd, char *rawbuf, uint length,
|
||||
{
|
||||
/* Update statistics for getting the query from the cache */
|
||||
thd->lex->sql_command= SQLCOM_SELECT;
|
||||
status_var_increment(thd->status_var.com_stat[thd->lex->sql_command]);
|
||||
status_var_increment(thd->status_var.com_stat[SQLCOM_SELECT]);
|
||||
thd->update_stats();
|
||||
}
|
||||
DBUG_VOID_RETURN;
|
||||
|
||||
Reference in New Issue
Block a user