Permalink
Browse files

bugfix: EXPIRE now propagates to the Slave.

  • Loading branch information...
1 parent f0dec43 commit 774230260ff61dbc143236f690ccc73048f7fdfe @antirez antirez committed Jul 3, 2009
Showing with 4 additions and 2 deletions.
  1. +4 −2 redis.c
View
@@ -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;
}
}

0 comments on commit 7742302

Please sign in to comment.