X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/3a73be752476f44dfb099863ac9424c2f27f2be0..3ea204e1031a94dafca7f7e4eed2f79ec3bd7fd0:/src/db.c diff --git a/src/db.c b/src/db.c index 669fba13..9daa5ddb 100644 --- a/src/db.c +++ b/src/db.c @@ -592,6 +592,7 @@ void expireatCommand(redisClient *c) { void ttlCommand(redisClient *c) { time_t expire, ttl = -1; + if (server.ds_enabled) lookupKeyRead(c->db,c->argv[1]); expire = getExpire(c->db,c->argv[1]); if (expire != -1) { ttl = (expire-time(NULL));