From 404a56a1e97bf9df334a8311dd984d1d148742cb Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 23 Dec 2012 08:26:00 +0000 Subject: [PATCH] Fix key archival configuration from static config. --- src/migrate.c | 2 -- src/redis.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/migrate.c b/src/migrate.c index 23f40e48..a08aa961 100644 --- a/src/migrate.c +++ b/src/migrate.c @@ -253,7 +253,6 @@ socket_rd_err: } void stopKeyArchive(void) { - redisAssert(server.mdb_state == REDIS_MDB_ON); redisAssert(env != NULL); mdb_dbi_close(env, dbi); @@ -264,7 +263,6 @@ void stopKeyArchive(void) { } int startKeyArchive(void) { - redisAssert(server.mdb_state == REDIS_MDB_OFF); redisAssert(env == NULL); int ret; diff --git a/src/redis.c b/src/redis.c index eed21263..2cc46e5b 100644 --- a/src/redis.c +++ b/src/redis.c @@ -1348,7 +1348,7 @@ void initServer() { } } - if (server.aof_state == REDIS_MDB_ON) { + if (server.mdb_state == REDIS_MDB_ON) { int retval = startKeyArchive(); if (retval != 0) { redisLog(REDIS_WARNING, "Can't open the key-archive environment: %s", -- 2.47.2