]> git.saurik.com Git - redis.git/commitdiff
MIGRATE count of cached sockets in INFO output.
authorantirez <antirez@gmail.com>
Mon, 12 Nov 2012 13:01:56 +0000 (14:01 +0100)
committerantirez <antirez@gmail.com>
Mon, 12 Nov 2012 13:01:56 +0000 (14:01 +0100)
src/redis.c

index f0f3b6c0a0d1ba0f5be548e8cb666de304f219cd..82dade155bf301efff9eeff66ed86f4bddd28a4b 100644 (file)
@@ -2082,7 +2082,8 @@ sds genRedisInfoString(char *section) {
             "keyspace_misses:%lld\r\n"
             "pubsub_channels:%ld\r\n"
             "pubsub_patterns:%lu\r\n"
-            "latest_fork_usec:%lld\r\n",
+            "latest_fork_usec:%lld\r\n"
+            "migrate_cached_sockets:%ld\r\n",
             server.stat_numconnections,
             server.stat_numcommands,
             getOperationsPerSecond(),
@@ -2093,7 +2094,8 @@ sds genRedisInfoString(char *section) {
             server.stat_keyspace_misses,
             dictSize(server.pubsub_channels),
             listLength(server.pubsub_patterns),
-            server.stat_fork_time);
+            server.stat_fork_time,
+            dictSize(server.migrate_cached_sockets));
     }
 
     /* Replication */