fix time() instead of mstime() in expireIfNeeded

This commit is contained in:
Premysl Hruby 2012-03-27 17:19:54 +02:00 committed by antirez
parent 56ff70f8e0
commit 92dd4e4301

View File

@ -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 */