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:
@ -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
|
||||
|
Reference in New Issue
Block a user