]> git.saurik.com Git - redis.git/commitdiff
max zipmap entries and max zipmap value parameters added into INFO output
authorantirez <antirez@gmail.com>
Sun, 14 Mar 2010 12:58:28 +0000 (13:58 +0100)
committerantirez <antirez@gmail.com>
Sun, 14 Mar 2010 12:58:28 +0000 (13:58 +0100)
redis.c

diff --git a/redis.c b/redis.c
index b61638f761d1b5eb097bbc4fa79483d0578d76a0..0cc71c68b97c151e778dddff8a4e80f1f70c8ece 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -6449,6 +6449,9 @@ static sds genRedisInfoString(void) {
     time_t uptime = time(NULL)-server.stat_starttime;
     int j;
     char hmem[64];
+
+    server.hash_max_zipmap_entries = REDIS_HASH_MAX_ZIPMAP_ENTRIES;
+    server.hash_max_zipmap_value = REDIS_HASH_MAX_ZIPMAP_VALUE;
   
     bytesToHuman(hmem,zmalloc_used_memory());
     info = sdscatprintf(sdsempty(),
@@ -6469,6 +6472,8 @@ static sds genRedisInfoString(void) {
         "bgrewriteaof_in_progress:%d\r\n"
         "total_connections_received:%lld\r\n"
         "total_commands_processed:%lld\r\n"
+        "hash_max_zipmap_entries:%ld\r\n"
+        "hash_max_zipmap_value:%ld\r\n"
         "vm_enabled:%d\r\n"
         "role:%s\r\n"
         ,REDIS_VERSION,
@@ -6488,6 +6493,8 @@ static sds genRedisInfoString(void) {
         server.bgrewritechildpid != -1,
         server.stat_numconnections,
         server.stat_numcommands,
+        server.hash_max_zipmap_entries,
+        server.hash_max_zipmap_value,
         server.vm_enabled != 0,
         server.masterhost == NULL ? "master" : "slave"
     );