diff options
author | antirez <antirez@gmail.com> | 2011-11-21 15:54:49 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2011-11-21 18:36:56 +0100 |
commit | 51baa1922bef32d14cc3a1857ad3b993f50ee4fb (patch) | |
tree | 15a76a1f57144b30d697010f16b032bdeca07a5b | |
parent | f3ac12aac2f42633166aa610dedc14043328680a (diff) | |
download | redis-51baa1922bef32d14cc3a1857ad3b993f50ee4fb.tar.gz |
added output list and buffer length, query buffer size, to CLIENT LIST output.
-rw-r--r-- | src/networking.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/networking.c b/src/networking.c index 20d9471f0..9c57956a3 100644 --- a/src/networking.c +++ b/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) { |