MDEV-19200 Do not print "Thread <num> did not exit" message for system/background THDs
This commit is contained in:
parent
9487e0b259
commit
9dae991a95
@ -1592,7 +1592,7 @@ static my_bool kill_thread_phase_2(THD *thd, void *)
|
|||||||
/* associated with the kill thread phase 1 */
|
/* associated with the kill thread phase 1 */
|
||||||
static my_bool warn_threads_active_after_phase_1(THD *thd, void *)
|
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,
|
sql_print_warning("%s: Thread %llu (user : '%s') did not exit\n", my_progname,
|
||||||
(ulonglong) thd->thread_id,
|
(ulonglong) thd->thread_id,
|
||||||
(thd->main_security_ctx.user ?
|
(thd->main_security_ctx.user ?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user