bugfix: EXPIRE now propagates to the Slave.

This commit is contained in:
antirez 2009-07-03 19:57:26 +02:00
parent f0dec43b53
commit 774230260f

View File

@ -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;
}
}