print bytes used at exit on SHUTDOWN

This commit is contained in:
antirez
2009-04-28 22:04:41 +02:00
parent 0eeb2a4b8f
commit b284af55d8
2 changed files with 3 additions and 3 deletions

View File

@ -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 {