added output list and buffer length, query buffer size, to CLIENT LIST output.
This commit is contained in:
parent
5e84f56ea6
commit
491c1c4e04
@ -951,13 +951,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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user