mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
pass the slow logging information in thd->query_plan_flags
This solves the following issues: * unlike lex->m_sql_cmd and lex->sql_command, thd->query_plan_flags is not reset in Prepared_statement::execute, it survives till the log_slow_statement(), so slow logging behaves correctly in --ps * using thd->query_plan_flags for both slow_log_filter and log_slow_admin_statements means the definition of "admin" statements for the slow log is the same no matter how it is filtered out.
This commit is contained in:
@ -28,7 +28,7 @@ int reassign_keycache_tables(THD* thd, KEY_CACHE *src_cache,
|
||||
/**
|
||||
Sql_cmd_analyze_table represents the ANALYZE TABLE statement.
|
||||
*/
|
||||
class Sql_cmd_analyze_table : public Sql_cmd_admin
|
||||
class Sql_cmd_analyze_table : public Sql_cmd
|
||||
{
|
||||
public:
|
||||
/**
|
||||
@ -53,7 +53,7 @@ public:
|
||||
/**
|
||||
Sql_cmd_check_table represents the CHECK TABLE statement.
|
||||
*/
|
||||
class Sql_cmd_check_table : public Sql_cmd_admin
|
||||
class Sql_cmd_check_table : public Sql_cmd
|
||||
{
|
||||
public:
|
||||
/**
|
||||
@ -77,7 +77,7 @@ public:
|
||||
/**
|
||||
Sql_cmd_optimize_table represents the OPTIMIZE TABLE statement.
|
||||
*/
|
||||
class Sql_cmd_optimize_table : public Sql_cmd_admin
|
||||
class Sql_cmd_optimize_table : public Sql_cmd
|
||||
{
|
||||
public:
|
||||
/**
|
||||
@ -102,7 +102,7 @@ public:
|
||||
/**
|
||||
Sql_cmd_repair_table represents the REPAIR TABLE statement.
|
||||
*/
|
||||
class Sql_cmd_repair_table : public Sql_cmd_admin
|
||||
class Sql_cmd_repair_table : public Sql_cmd
|
||||
{
|
||||
public:
|
||||
/**
|
||||
|
Reference in New Issue
Block a user