diff options
| author | Sergei Golubchik <sergii@pisem.net> | 2014-07-23 19:36:15 +0200 |
|---|---|---|
| committer | Sergei Golubchik <sergii@pisem.net> | 2014-07-23 19:36:15 +0200 |
| commit | 4e6e720160d983752465323477d74a1c90bad0cd (patch) | |
| tree | 34ff60aa32c7d09daaf5946b4b4af1b3b5f8ae26 /sql/sql_parse.cc | |
| parent | 80708da138913deb3a096da0e761ff247766bf96 (diff) | |
| download | mariadb-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.cc | 2 |
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. |
