mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
Merge branch 'mysql-5.1' into mysql-5.5
This commit is contained in:
commit
9bacdef10b
1 changed files with 4 additions and 2 deletions
|
@ -1839,7 +1839,8 @@ void mysqld_list_processes(THD *thd,const char *user, bool verbose)
|
|||
Security_context *tmp_sctx= tmp->security_ctx;
|
||||
struct st_my_thread_var *mysys_var;
|
||||
if ((tmp->vio_ok() || tmp->system_thread) &&
|
||||
(!user || (tmp_sctx->user && !strcmp(tmp_sctx->user, user))))
|
||||
(!user || (!tmp->system_thread && tmp_sctx->user &&
|
||||
!strcmp(tmp_sctx->user, user))))
|
||||
{
|
||||
thread_info *thd_info= new thread_info;
|
||||
|
||||
|
@ -1949,7 +1950,8 @@ int fill_schema_processlist(THD* thd, TABLE_LIST* tables, COND* cond)
|
|||
const char *val, *db;
|
||||
|
||||
if ((!tmp->vio_ok() && !tmp->system_thread) ||
|
||||
(user && (!tmp_sctx->user || strcmp(tmp_sctx->user, user))))
|
||||
(user && (tmp->system_thread || !tmp_sctx->user ||
|
||||
strcmp(tmp_sctx->user, user))))
|
||||
continue;
|
||||
|
||||
restore_record(table, s->default_values);
|
||||
|
|
Loading…
Reference in a new issue