X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/b7a8daef6070816e08438fd64b2b9a41571eb333..ab17b909fe46603f78c8305a3cf2f02a0c6de0a4:/src/db.c diff --git a/src/db.c b/src/db.c index d5e0d1e8..958a9f6b 100644 --- a/src/db.c +++ b/src/db.c @@ -46,7 +46,6 @@ robj *lookupKeyRead(redisDb *db, robj *key) { robj *lookupKeyWrite(redisDb *db, robj *key) { deleteIfVolatile(db,key); - touchWatchedKey(db,key); return lookupKey(db,key); } @@ -332,6 +331,7 @@ void renameGenericCommand(redisClient *c, int nx) { dbReplace(c->db,c->argv[2],o); } dbDelete(c->db,c->argv[1]); + touchWatchedKey(c->db,c->argv[1]); touchWatchedKey(c->db,c->argv[2]); server.dirty++; addReply(c,nx ? shared.cone : shared.ok); @@ -506,5 +506,3 @@ void ttlCommand(redisClient *c) { } addReplySds(c,sdscatprintf(sdsempty(),":%d\r\n",ttl)); } - -