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
51baa192
Commit
51baa192
authored
Nov 21, 2011
by
antirez
Browse files
added output list and buffer length, query buffer size, to CLIENT LIST output.
parent
f3ac12aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
51baa192
...
@@ -911,13 +911,16 @@ sds getClientInfoString(redisClient *client) {
...
@@ -911,13 +911,16 @@ sds getClientInfoString(redisClient *client) {
if
(
client
->
flags
&
REDIS_UNBLOCKED
)
*
p
++
=
'u'
;
if
(
client
->
flags
&
REDIS_UNBLOCKED
)
*
p
++
=
'u'
;
*
p
++
=
'\0'
;
*
p
++
=
'\0'
;
return
sdscatprintf
(
sdsempty
(),
return
sdscatprintf
(
sdsempty
(),
"addr=%s:%d fd=%d idle=%ld flags=%s db=%d sub=%d psub=%d"
,
"addr=%s:%d fd=%d idle=%ld flags=%s db=%d sub=%d psub=%d
qbuf=%lu obl=%lu oll=%lu
"
,
ip
,
port
,
client
->
fd
,
ip
,
port
,
client
->
fd
,
(
long
)(
now
-
client
->
lastinteraction
),
(
long
)(
now
-
client
->
lastinteraction
),
flags
,
flags
,
client
->
db
->
id
,
client
->
db
->
id
,
(
int
)
dictSize
(
client
->
pubsub_channels
),
(
int
)
dictSize
(
client
->
pubsub_channels
),
(
int
)
listLength
(
client
->
pubsub_patterns
));
(
int
)
listLength
(
client
->
pubsub_patterns
),
(
unsigned
long
)
sdslen
(
client
->
querybuf
),
(
unsigned
long
)
client
->
bufpos
,
(
unsigned
long
)
listLength
(
client
->
reply
));
}
}
void
clientCommand
(
redisClient
*
c
)
{
void
clientCommand
(
redisClient
*
c
)
{
...
...
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