]> git.saurik.com Git - redis.git/commitdiff
print bytes used at exit on SHUTDOWN
authorantirez <antirez@gmail.com>
Tue, 28 Apr 2009 20:04:41 +0000 (22:04 +0200)
committerantirez <antirez@gmail.com>
Tue, 28 Apr 2009 20:04:41 +0000 (22:04 +0200)
TODO
redis.c

diff --git a/TODO b/TODO
index e236352c53329e5ffc3c3177df1b3dbddb9acf4d..272b77ca22789e873a98a287e55abcda29737f4d 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,9 +1,8 @@
 BEFORE REDIS 1.0.0-rc1
 
-- SMOVE _key1_ _key2_ _ele_. Pop an element form _key1_ and push (SADD or LPUSH) it nto _key2_.
+- Remove max number of args limit
 - What happens if the saving child gets killed instead to end normally? Handle this.
 - Make sinterstore / unionstore / sdiffstore returning the cardinality of the resulting set.
-- Remove max number of args limit
 - network layer stresser in test in demo, make sure to set/get random streams of data and check that what we read back is byte-by-byte the same.
 - maxclients directive
 - check 'server.dirty' everywere
diff --git a/redis.c b/redis.c
index 856a6cacb4eaa98854f854082906d633d405d5fe..9550e290e41732f9005c6211f3ca2748a255b049 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -2392,8 +2392,9 @@ static void shutdownCommand(redisClient *c) {
     /* XXX: TODO kill the child if there is a bgsave in progress */
     if (rdbSave(server.dbfilename) == REDIS_OK) {
         if (server.daemonize) {
-          unlink(server.pidfile);
+            unlink(server.pidfile);
         }
+        redisLog(REDIS_WARNING,"%zu bytes used at exit",zmalloc_used_memory());
         redisLog(REDIS_WARNING,"Server exit now, bye bye...");
         exit(1);
     } else {