Skip to content
Browse files

added output list and buffer length, query buffer size, to CLIENT LIS…

…T output.
  • Loading branch information...
1 parent f3ac12a commit 51baa1922bef32d14cc3a1857ad3b993f50ee4fb @antirez committed Nov 21, 2011
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/networking.c
View
7 src/networking.c
@@ -911,13 +911,16 @@ sds getClientInfoString(redisClient *client) {
if (client->flags & REDIS_UNBLOCKED) *p++ = 'u';
*p++ = '\0';
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,
(long)(now - client->lastinteraction),
flags,
client->db->id,
(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) {

0 comments on commit 51baa19

Please sign in to comment.
Something went wrong with that request. Please try again.