diff options
author | Premysl Hruby <dfenze@gmail.com> | 2012-03-27 17:19:54 +0200 |
---|---|---|
committer | Premysl Hruby <dfenze@gmail.com> | 2012-03-27 17:31:21 +0200 |
commit | 024f213b12c62ac7421faad8f6dc855c3e0784c7 (patch) | |
tree | 9564e25bb1418dff872c14ba503611c0d28bc1a9 /src | |
parent | a32387045058d16e346c48157d2b0bf5c3ce67f0 (diff) | |
download | redis-024f213b12c62ac7421faad8f6dc855c3e0784c7.tar.gz |
fix time() instead of mstime() in expireIfNeeded
Diffstat (limited to 'src')
-rw-r--r-- | src/db.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |