From 7c24c300f7c6f2222a4fad92def614e0376f339f Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 23 Dec 2012 09:18:46 +0000 Subject: [PATCH] Mark keys unarchived during dbAdd (for move/rename). --- src/db.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/db.c b/src/db.c index 536dc6d8..61e57699 100644 --- a/src/db.c +++ b/src/db.c @@ -93,6 +93,7 @@ robj *lookupKeyWriteOrReply(redisClient *c, robj *key, robj *reply) { void dbAdd(redisDb *db, robj *key, robj *val) { sds copy = sdsdup(key->ptr); int retval = dictAdd(db->dict, copy, val); + val->archived = 0; redisAssertWithInfo(NULL,key,retval == REDIS_OK); } -- 2.45.2