Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

bugfix: EXPIRE now propagates to the Slave.

  • Loading branch information...
commit 774230260ff61dbc143236f690ccc73048f7fdfe 1 parent f0dec43
@antirez antirez authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 redis.c
View
6 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;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.