summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2014-07-23 19:36:15 +0200
committerSergei Golubchik <sergii@pisem.net>2014-07-23 19:36:15 +0200
commit4e6e720160d983752465323477d74a1c90bad0cd (patch)
tree34ff60aa32c7d09daaf5946b4b4af1b3b5f8ae26 /sql/sql_parse.cc
parent80708da138913deb3a096da0e761ff247766bf96 (diff)
downloadmariadb-git-4e6e720160d983752465323477d74a1c90bad0cd.tar.gz
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
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc2
1 files changed, 1 insertions, 1 deletions
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<THD> 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.