提交 024f213b 编写于 作者: P Premysl Hruby

fix time() instead of mstime() in expireIfNeeded

上级 a3238704
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册