X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/efd412f908a03696aa0a44dbf661be6bd12f51ff..4d57e44839f93b048cf0bb79f1b901b9f554bff4:/src/db.c?ds=inline diff --git a/src/db.c b/src/db.c index 160ffb79..73ee9166 100644 --- a/src/db.c +++ b/src/db.c @@ -483,7 +483,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 */