From: antirez Date: Mon, 21 Nov 2011 14:54:49 +0000 (+0100) Subject: added output list and buffer length, query buffer size, to CLIENT LIST output. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/491c1c4e044ac18c25905d3aba5c1578d6da7502?hp=5e84f56ea6e6a8f92e6771d6cfafa03072d8cc2f added output list and buffer length, query buffer size, to CLIENT LIST output. --- diff --git a/src/networking.c b/src/networking.c index 073bf4df..0112f112 100644 --- a/src/networking.c +++ b/src/networking.c @@ -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) {