summaryrefslogtreecommitdiff
path: root/sql/sql_alter.cc
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2019-02-27 13:14:31 +0400
committerAlexander Barkov <bar@mariadb.com>2019-03-04 13:49:15 +0400
commit19df45a705a48f5c8c21af0814cb5be7d816977b (patch)
treef4c4f13df3ff1bad07639e2e1be2ddc386b796bc /sql/sql_alter.cc
parentf2e1451740d417f1c9ea8626d937fbcacc91bb55 (diff)
downloadmariadb-git-19df45a705a48f5c8c21af0814cb5be7d816977b.tar.gz
MDEV-18333 Slow_queries count doesn't increase when slow_query_log is turned off
Diffstat (limited to 'sql/sql_alter.cc')
-rw-r--r--sql/sql_alter.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/sql/sql_alter.cc b/sql/sql_alter.cc
index 758489ddcfb..243cf4c790f 100644
--- a/sql/sql_alter.cc
+++ b/sql/sql_alter.cc
@@ -302,8 +302,6 @@ bool Sql_cmd_alter_table::execute(THD *thd)
"INDEX DIRECTORY");
create_info.data_file_name= create_info.index_file_name= NULL;
- thd->enable_slow_log= opt_log_slow_admin_statements;
-
#ifdef WITH_WSREP
TABLE *find_temporary_table(THD *thd, const TABLE_LIST *tl);
@@ -352,8 +350,6 @@ bool Sql_cmd_discard_import_tablespace::execute(THD *thd)
if (check_grant(thd, ALTER_ACL, table_list, false, UINT_MAX, false))
return true;
- thd->enable_slow_log= opt_log_slow_admin_statements;
-
/*
Check if we attempt to alter mysql.slow_log or
mysql.general_log table and return an error if