summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPremysl Hruby <dfenze@gmail.com>2012-03-27 17:19:54 +0200
committerPremysl Hruby <dfenze@gmail.com>2012-03-27 17:31:21 +0200
commit024f213b12c62ac7421faad8f6dc855c3e0784c7 (patch)
tree9564e25bb1418dff872c14ba503611c0d28bc1a9 /src
parenta32387045058d16e346c48157d2b0bf5c3ce67f0 (diff)
downloadredis-024f213b12c62ac7421faad8f6dc855c3e0784c7.tar.gz
fix time() instead of mstime() in expireIfNeeded
Diffstat (limited to 'src')
-rw-r--r--src/db.c2
1 files changed, 1 insertions, 1 deletions
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 */