]> git.saurik.com Git - redis.git/blobdiff - redis.c
redis.conf new features the new option, a minor typo preventing the compilation fixed
[redis.git] / redis.c
diff --git a/redis.c b/redis.c
index f747c046031f2530330e6390ea7980bddb7b906e..8c4e3ab232dd6f144e3a7e8e712d1bc24cbf43fb 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -1386,7 +1386,7 @@ void backgroundRewriteDoneHandler(int statloc) {
             /* If append only is actually enabled... */
             close(server.appendfd);
             server.appendfd = fd;
-            if (appendfsync != APPENDFSYNC_NO) aof_fsync(fd);
+            if (server.appendfsync != APPENDFSYNC_NO) aof_fsync(fd);
             server.appendseldb = -1; /* Make sure it will issue SELECT */
             redisLog(REDIS_NOTICE,"The new append only file was selected for future appends.");
         } else {