]> git.saurik.com Git - redis.git/commitdiff
appendfsync is now set to NO by default
authorantirez <antirez@gmail.com>
Fri, 30 Oct 2009 15:35:16 +0000 (16:35 +0100)
committerantirez <antirez@gmail.com>
Fri, 30 Oct 2009 15:35:16 +0000 (16:35 +0100)
redis.c
redis.conf

diff --git a/redis.c b/redis.c
index 375a31f8d2fe2cab02787a77d9b1116cf283da57..839b0b3b37c066ac7c6b504c13f5ecf5fef5085b 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -1036,7 +1036,7 @@ static void initServerConfig() {
     server.glueoutputbuf = 1;
     server.daemonize = 0;
     server.appendonly = 0;
-    server.appendfsync = APPENDFSYNC_EVERYSEC;
+    server.appendfsync = APPENDFSYNC_NO;
     server.lastfsync = time(NULL);
     server.appendfd = -1;
     server.appendseldb = -1; /* Make sure the first time will not match */
index 610049ef9557c65a016c5a2ee7e2299898f6b9a3..a7ec36a08c086b23570148805b31c0ebbeb631ab 100644 (file)
@@ -121,6 +121,8 @@ databases 16
 # like (you have to comment the "save" statements above to disable the dumps).
 # Still if append only mode is enabled Redis will load the data from the
 # log file at startup ignoring the dump.rdb file.
+#
+# The name of the append only file is "appendonly.log"
 
 # appendonly yes