]> git.saurik.com Git - redis.git/commitdiff
If a key is already archived, it can be deleted.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 23 Dec 2012 08:06:46 +0000 (08:06 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 23 Dec 2012 08:06:46 +0000 (08:06 +0000)
src/migrate.c

index 3886f62cb7325970f6ed4adc0260260a0a4c0b5d..23f40e4898d4536935cc813774439be9a607d614 100644 (file)
@@ -311,7 +311,7 @@ int archive(redisDb *db, robj *key) {
         return 0;
 
     if (object->archived != 0)
-        return 0;
+        return 1;
 
     rio payload;
     createDumpPayload(&payload, object);