Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
efeebb61
Unverified
Commit
efeebb61
authored
Feb 12, 2019
by
Salvatore Sanfilippo
Committed by
GitHub
Feb 12, 2019
Browse files
Merge pull request #5832 from soloestoy/show-client-user
ACL: show client's user
parents
85cadafa
0f42447a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
efeebb61
...
...
@@ -1781,7 +1781,7 @@ sds catClientInfoString(sds s, client *client) {
if
(
emask
&
AE_WRITABLE
)
*
p
++
=
'w'
;
*
p
=
'\0'
;
return
sdscatfmt
(
s
,
"id=%U addr=%s fd=%i name=%s age=%I idle=%I flags=%s db=%i sub=%i psub=%i multi=%i qbuf=%U qbuf-free=%U obl=%U oll=%U omem=%U events=%s cmd=%s"
,
"id=%U addr=%s fd=%i name=%s age=%I idle=%I flags=%s db=%i sub=%i psub=%i multi=%i qbuf=%U qbuf-free=%U obl=%U oll=%U omem=%U events=%s cmd=%s
user=%s
"
,
(
unsigned
long
long
)
client
->
id
,
getClientPeerId
(
client
),
client
->
fd
,
...
...
@@ -1799,7 +1799,8 @@ sds catClientInfoString(sds s, client *client) {
(
unsigned
long
long
)
listLength
(
client
->
reply
),
(
unsigned
long
long
)
getClientOutputBufferMemoryUsage
(
client
),
events
,
client
->
lastcmd
?
client
->
lastcmd
->
name
:
"NULL"
);
client
->
lastcmd
?
client
->
lastcmd
->
name
:
"NULL"
,
client
->
user
?
client
->
user
->
name
:
""
);
}
sds
getAllClientsInfoString
(
int
type
)
{
...
...
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