]> git.saurik.com Git - redis.git/blobdiff - src/aof.c
EVALSHA is now case insensitive.
[redis.git] / src / aof.c
index bc92cdb98b9c3a5b897bd07f808cd68098635989..6289e4dd5bd7d58d64d977da86b16878d0de63c7 100644 (file)
--- a/src/aof.c
+++ b/src/aof.c
@@ -962,6 +962,13 @@ int rewriteAppendOnlyFileBackground(void) {
         if (server.sofd > 0) close(server.sofd);
         snprintf(tmpfile,256,"temp-rewriteaof-bg-%d.aof", (int) getpid());
         if (rewriteAppendOnlyFile(tmpfile) == REDIS_OK) {
         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);
             exitFromChild(0);
         } else {
             exitFromChild(1);