mirror of
https://github.com/fluencelabs/redis
synced 2025-06-16 02:31:20 +00:00
print bytes used at exit on SHUTDOWN
This commit is contained in:
3
redis.c
3
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 {
|
||||
|
Reference in New Issue
Block a user