]> git.saurik.com Git - redis.git/blobdiff - src/redis.c
fixed a few bugs in DS store, now it's somewhat about able to reply to 'GET foo'...
[redis.git] / src / redis.c
index 2ca37a3b92a10c0bcf3a2a68775f90f55dbf7721..36b7c853ec8c493c8a7c6cde146761714bf66bba 100644 (file)
@@ -1050,7 +1050,9 @@ int prepareForShutdown() {
         kill(server.bgsavechildpid,SIGKILL);
         rdbRemoveTempFile(server.bgsavechildpid);
     }
-    if (server.appendonly) {
+    if (server.ds_enabled) {
+        /* FIXME: flush all objects on disk */
+    } else if (server.appendonly) {
         /* Append only file: fsync() the AOF and exit */
         aof_fsync(server.appendfd);
     } else if (server.saveparamslen > 0) {