提交 b518a835 编写于 作者: P Premysl Hruby 提交者: antirez

fix mstime() ommited while comparing if key is already expired

上级 9f899440
......@@ -529,7 +529,7 @@ void expireGenericCommand(redisClient *c, long long offset, int unit) {
*
* Instead we take the other branch of the IF statement setting an expire
* (possibly in the past) and wait for an explicit DEL from the master. */
if (milliseconds <= 0 && !server.loading && !server.masterhost) {
if (milliseconds <= mstime() && !server.loading && !server.masterhost) {
robj *aux;
redisAssertWithInfo(c,key,dbDelete(c->db,key));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册