INFO: show num of slave-expires keys tracked.

This commit is contained in:
antirez
2016-12-13 16:02:29 +01:00
parent 5b9ba26403
commit d1adc85aa6
3 changed files with 11 additions and 2 deletions

View File

@ -3008,7 +3008,8 @@ sds genRedisInfoString(char *section) {
"pubsub_channels:%ld\r\n"
"pubsub_patterns:%lu\r\n"
"latest_fork_usec:%lld\r\n"
"migrate_cached_sockets:%ld\r\n",
"migrate_cached_sockets:%ld\r\n"
"slave_expires_tracked_keys:%zu\r\n",
server.stat_numconnections,
server.stat_numcommands,
getInstantaneousMetric(STATS_METRIC_COMMAND),
@ -3027,7 +3028,8 @@ sds genRedisInfoString(char *section) {
dictSize(server.pubsub_channels),
listLength(server.pubsub_patterns),
server.stat_fork_time,
dictSize(server.migrate_cached_sockets));
dictSize(server.migrate_cached_sockets),
getSlaveKeyWithExpireCount());
}
/* Replication */