1
0
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:
unknown
2013-10-16 16:07:25 +03:00
parent 2f4db5348a
commit 73f8b4dac2
5 changed files with 122 additions and 1 deletions

View File

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