X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/3a73be752476f44dfb099863ac9424c2f27f2be0..72690afdd26b118589ddec3915cdb4790b9d4812:/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));