diff options
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r-- | sql/sql_lex.cc | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc index d6cc62c9dbf..e75433eb417 100644 --- a/sql/sql_lex.cc +++ b/sql/sql_lex.cc @@ -5104,20 +5104,6 @@ bool LEX::is_partition_management() const } -bool Sql_cmd::log_slow_enabled_statement(const THD *thd) const -{ - return global_system_variables.sql_log_slow && thd->variables.sql_log_slow; -} - - -bool Sql_cmd_admin::log_slow_enabled_statement(const THD *thd) const -{ - return !MY_TEST(thd->variables.log_slow_disabled_statements & - LOG_SLOW_DISABLE_ADMIN) && - Sql_cmd::log_slow_enabled_statement(thd); -} - - /** Exclude last added SELECT_LEX (current) in the UNIT and return pointer in it (previous become currect) |