fixed a few bugs in DS store, now it's somewhat about able to reply to 'GET foo' with a bogus value.

This commit is contained in:
antirez
2010-12-30 15:55:24 +01:00
parent 67b0b41c87
commit 1609a1c42d
3 changed files with 8 additions and 9 deletions

View 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) {