summaryrefslogtreecommitdiff
path: root/sql/mysqld.cc
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2019-08-30 17:06:53 +0200
committerVladislav Vaintroub <wlad@mariadb.com>2019-08-30 17:06:53 +0200
commit9dae991a95729c4a20498b35d6d42cbb6e0c3e79 (patch)
treed23cfc22f46fc8ae4eba573054e8b13d5c762004 /sql/mysqld.cc
parent9487e0b259e7f410f5f93ae59851be60d6a5112c (diff)
downloadmariadb-git-9dae991a95729c4a20498b35d6d42cbb6e0c3e79.tar.gz
MDEV-19200 Do not print "Thread <num> did not exit" message for system/background THDs
Diffstat (limited to 'sql/mysqld.cc')
-rw-r--r--sql/mysqld.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc
index 63d1d07cfaa..fc7e82936ea 100644
--- a/sql/mysqld.cc
+++ b/sql/mysqld.cc
@@ -1592,7 +1592,7 @@ static my_bool kill_thread_phase_2(THD *thd, void *)
/* associated with the kill thread phase 1 */
static my_bool warn_threads_active_after_phase_1(THD *thd, void *)
{
- if (!thd->is_binlog_dump_thread())
+ if (!thd->is_binlog_dump_thread() && thd->vio_ok())
sql_print_warning("%s: Thread %llu (user : '%s') did not exit\n", my_progname,
(ulonglong) thd->thread_id,
(thd->main_security_ctx.user ?