提交 77423026 编写于 作者: A antirez

bugfix: EXPIRE now propagates to the Slave.

上级 f0dec43b
......@@ -3758,10 +3758,12 @@ static void expireCommand(redisClient *c) {
return;
} else {
time_t when = time(NULL)+seconds;
if (setExpire(c->db,c->argv[1],when))
if (setExpire(c->db,c->argv[1],when)) {
addReply(c,shared.cone);
else
server.dirty++;
} else {
addReply(c,shared.czero);
}
return;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册