diff options
author | antirez <antirez@gmail.com> | 2011-01-07 18:15:14 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2011-01-07 18:15:14 +0100 |
commit | 36c17a53b6aece050b79b667fd32064f6eb116c2 (patch) | |
tree | 9c2fe6963ad38f7538bbd067e8f2dbf457d5efa1 /src/db.c | |
parent | cb9b35c8cafc703ea5f2754b2961c9a3268c35d5 (diff) | |
download | redis-36c17a53b6aece050b79b667fd32064f6eb116c2.tar.gz |
source reshaped a bit to play well with a bgsaving thread, still work to do, does not compile.
Diffstat (limited to 'src/db.c')
-rw-r--r-- | src/db.c | 24 |
1 files changed, 0 insertions, 24 deletions
@@ -379,30 +379,6 @@ void typeCommand(redisClient *c) { addReplyStatus(c,type); } -void saveCommand(redisClient *c) { - if (server.bgsavechildpid != -1) { - addReplyError(c,"Background save already in progress"); - return; - } - if (rdbSave(server.dbfilename) == REDIS_OK) { - addReply(c,shared.ok); - } else { - addReply(c,shared.err); - } -} - -void bgsaveCommand(redisClient *c) { - if (server.bgsavechildpid != -1) { - addReplyError(c,"Background save already in progress"); - return; - } - if (rdbSaveBackground(server.dbfilename) == REDIS_OK) { - addReplyStatus(c,"Background saving started"); - } else { - addReply(c,shared.err); - } -} - void shutdownCommand(redisClient *c) { if (prepareForShutdown() == REDIS_OK) exit(0); |