From 92dd4e4301e8b2ff4324e968ced6b9eb8f8a2328 Mon Sep 17 00:00:00 2001 From: Premysl Hruby Date: Tue, 27 Mar 2012 17:19:54 +0200 Subject: [PATCH] fix time() instead of mstime() in expireIfNeeded --- src/db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.49.0