]> git.saurik.com Git - redis.git/commitdiff
added output list and buffer length, query buffer size, to CLIENT LIST output.
authorantirez <antirez@gmail.com>
Mon, 21 Nov 2011 14:54:49 +0000 (15:54 +0100)
committerantirez <antirez@gmail.com>
Mon, 21 Nov 2011 14:54:49 +0000 (15:54 +0100)
src/networking.c

index 073bf4dfcb928bbf43e61d0039bda6339d392ef6..0112f1125a50c74e4b5fc71f1dcae5c2593c1b43 100644 (file)
@@ -951,13 +951,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) {