diff options
author | Sergey Glukhov <Sergey.Glukhov@sun.com> | 2008-12-29 16:06:53 +0400 |
---|---|---|
committer | Sergey Glukhov <Sergey.Glukhov@sun.com> | 2008-12-29 16:06:53 +0400 |
commit | f67ce4761768a3ea05f8c4c11704fd5cd2065d3a (patch) | |
tree | 0613c29aa935252f59552e65e1feaa2eef6d0123 /sql/mysqld.cc | |
parent | a31795b82d9b2f40cb2b489c99d6d03e036f039f (diff) | |
download | mariadb-git-f67ce4761768a3ea05f8c4c11704fd5cd2065d3a.tar.gz |
Bug#41131 "Questions" fails to increment - ignores statements instead stored procs(5.0 ver)
Added global status variable 'Queries' which represents
total amount of queries executed by server including
statements executed by SPs.
note: It's old behaviour of 'Questions' variable.
Diffstat (limited to 'sql/mysqld.cc')
-rw-r--r-- | sql/mysqld.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 269e1aed7cc..ca68976d939 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -6620,6 +6620,7 @@ struct show_var_st status_vars[]= { {"Qcache_queries_in_cache", (char*) &query_cache.queries_in_cache, SHOW_LONG_CONST}, {"Qcache_total_blocks", (char*) &query_cache.total_blocks, SHOW_LONG_CONST}, #endif /*HAVE_QUERY_CACHE*/ + {"Queries", (char*) 0, SHOW_QUERIES}, {"Questions", (char*) offsetof(STATUS_VAR, questions), SHOW_LONG_STATUS}, |