Commit 92dd4e43 authored by Premysl Hruby's avatar Premysl Hruby Committed by antirez
Browse files

fix time() instead of mstime() in expireIfNeeded

parent 56ff70f8
...@@ -483,7 +483,7 @@ int expireIfNeeded(redisDb *db, robj *key) { ...@@ -483,7 +483,7 @@ int expireIfNeeded(redisDb *db, robj *key) {
* that is, 0 if we think the key should be still valid, 1 if * that is, 0 if we think the key should be still valid, 1 if
* we think the key is expired at this time. */ * we think the key is expired at this time. */
if (server.masterhost != NULL) { if (server.masterhost != NULL) {
return time(NULL) > when; return mstime() > when;
} }
/* Return when this key has not expired */ /* Return when this key has not expired */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment