Commit 77423026 authored by antirez's avatar antirez
Browse files

bugfix: EXPIRE now propagates to the Slave.

parent 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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment