1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-18333 Slow_queries count doesn't increase when slow_query_log is turned off

This commit is contained in:
Alexander Barkov
2019-02-27 13:14:31 +04:00
parent f2e1451740
commit 19df45a705
11 changed files with 161 additions and 29 deletions

View File

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