diff --git a/src/db.c b/src/db.c index a0775af96..0fb8343b4 100644 --- a/src/db.c +++ b/src/db.c @@ -518,7 +518,7 @@ int expireIfNeeded(redisDb *db, robj *key) { * that is, 0 if we think the key should be still valid, 1 if * we think the key is expired at this time. */ if (server.masterhost != NULL) { - return time(NULL) > when; + return mstime() > when; } /* Return when this key has not expired */