if (server.sofd > 0) close(server.sofd);
snprintf(tmpfile,256,"temp-rewriteaof-bg-%d.aof", (int) getpid());
if (rewriteAppendOnlyFile(tmpfile) == REDIS_OK) {
+ size_t private_dirty = zmalloc_get_private_dirty();
+
+ if (private_dirty) {
+ redisLog(REDIS_NOTICE,
+ "AOF rewrite: %lu MB of memory used by copy-on-write",
+ private_dirty/(1024*1024));
+ }
exitFromChild(0);
} else {
exitFromChild(1);