diff options
| author | Alexander Barkov <bar@mariadb.com> | 2019-02-27 13:14:31 +0400 |
|---|---|---|
| committer | Alexander Barkov <bar@mariadb.com> | 2019-03-04 13:49:15 +0400 |
| commit | 19df45a705a48f5c8c21af0814cb5be7d816977b (patch) | |
| tree | f4c4f13df3ff1bad07639e2e1be2ddc386b796bc /sql/sql_cmd.h | |
| parent | f2e1451740d417f1c9ea8626d937fbcacc91bb55 (diff) | |
| download | mariadb-git-19df45a705a48f5c8c21af0814cb5be7d816977b.tar.gz | |
MDEV-18333 Slow_queries count doesn't increase when slow_query_log is turned off
Diffstat (limited to 'sql/sql_cmd.h')
| -rw-r--r-- | sql/sql_cmd.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sql/sql_cmd.h b/sql/sql_cmd.h index 904578134b4..9cb2a728f41 100644 --- a/sql/sql_cmd.h +++ b/sql/sql_cmd.h @@ -145,6 +145,8 @@ public: */ virtual bool execute(THD *thd) = 0; + virtual bool log_slow_enabled_statement(const THD *thd) const; + protected: Sql_cmd() {} @@ -161,4 +163,17 @@ protected: } }; + +class Sql_cmd_admin: public Sql_cmd +{ +public: + Sql_cmd_admin() + {} + ~Sql_cmd_admin() + {} + bool log_slow_enabled_statement(const THD *thd) const; +}; + + + #endif // SQL_CMD_INCLUDED |
