From: antirez Date: Fri, 3 Jul 2009 17:57:26 +0000 (+0200) Subject: bugfix: EXPIRE now propagates to the Slave. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/774230260ff61dbc143236f690ccc73048f7fdfe bugfix: EXPIRE now propagates to the Slave. --- diff --git a/redis.c b/redis.c index 670b66ad..d901b7cc 100644 --- a/redis.c +++ b/redis.c @@ -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; } }