Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
e65f3f6f
Commit
e65f3f6f
authored
Apr 06, 2015
by
Nisha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#20754369: BACKPORT BUG#20007583 TO 5.1
Backporting the patch to 5.1 and 5.5
parent
85b12898
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
sql/sql_show.cc
sql/sql_show.cc
+5
-3
No files found.
sql/sql_show.cc
View file @
e65f3f6f
/* Copyright (c) 2000, 201
3
, Oracle and/or its affiliates. All rights reserved.
/* Copyright (c) 2000, 201
5
, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -1828,7 +1828,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
;
...
...
@@ -1940,7 +1941,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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment