]> git.saurik.com Git - redis.git/commitdiff
fix time() instead of mstime() in expireIfNeeded
authorPremysl Hruby <dfenze@gmail.com>
Tue, 27 Mar 2012 15:19:54 +0000 (17:19 +0200)
committerPremysl Hruby <dfenze@gmail.com>
Tue, 27 Mar 2012 15:31:21 +0000 (17:31 +0200)
src/db.c

index a0775af96506c19a14a9cf6d2bb9e78ace041bed..0fb8343b4ce9ddb3ed021189791bf41c738bd218 100644 (file)
--- 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 */