]> git.saurik.com Git - redis.git/commitdiff
Mark keys unarchived during dbAdd (for move/rename).
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 23 Dec 2012 09:18:46 +0000 (09:18 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 23 Dec 2012 09:18:46 +0000 (09:18 +0000)
src/db.c

index 536dc6d866170c9d44563e82d8824e88c3e19244..61e5769968e7445c7d86485b870192c0e73ea909 100644 (file)
--- 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);
  }