summaryrefslogtreecommitdiff
path: root/src/db.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2011-01-07 18:15:14 +0100
committerantirez <antirez@gmail.com>2011-01-07 18:15:14 +0100
commit36c17a53b6aece050b79b667fd32064f6eb116c2 (patch)
tree9c2fe6963ad38f7538bbd067e8f2dbf457d5efa1 /src/db.c
parentcb9b35c8cafc703ea5f2754b2961c9a3268c35d5 (diff)
downloadredis-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.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/db.c b/src/db.c
index 1242c8898..6276c992b 100644
--- a/src/db.c
+++ b/src/db.c
@@ -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);