From 4e6e720160d983752465323477d74a1c90bad0cd Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Wed, 23 Jul 2014 19:36:15 +0200 Subject: MDEV-6290 Crash in KILL HARD QUERY USER x@y when slave threads are running KILL USER should ignore system threads where sctx->user=sctx->host=NULL --- sql/sql_parse.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/sql_parse.cc') diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 2c833761e74..43b10a6fb9e 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -7365,7 +7365,7 @@ static uint kill_threads_for_user(THD *thd, LEX_USER *user, I_List_iterator it(threads); while ((tmp=it++)) { - if (tmp->command == COM_DAEMON) + if (!tmp->security_ctx->user) continue; /* Check that hostname (if given) and user name matches. -- cgit v1.2.1