diff options
author | Sergei Golubchik <sergii@pisem.net> | 2011-11-28 23:15:12 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2011-11-28 23:15:12 +0100 |
commit | ec38c1bbd709da99fb84e2889f4443247fccfb30 (patch) | |
tree | 0324b7ee684e170c655f4f9d1472282ddc589f7c /sql/sql_class.cc | |
parent | b27d93f3471c2e06347d0c918a8ada20f6168191 (diff) | |
download | mariadb-git-ec38c1bbd709da99fb84e2889f4443247fccfb30.tar.gz |
small cleanup
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r-- | sql/sql_class.cc | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc index 259e5f2fd4f..cc58a131f00 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -1528,15 +1528,7 @@ void THD::awake(killed_state state_to_set) THD_CHECK_SENTRY(this); mysql_mutex_assert_owner(&LOCK_thd_data); - if (global_system_variables.log_warnings > 3) - { - Security_context *sctx= security_ctx; - sql_print_warning(ER(ER_NEW_ABORTING_CONNECTION), - thread_id,(db ? db : "unconnected"), - sctx->user ? sctx->user : "unauthenticated", - sctx->host_or_ip, - "KILLED"); - } + print_aborted_warning(3, "KILLED"); /* Set the 'killed' flag of 'this', which is the target THD object. */ killed= state_to_set; |