summaryrefslogtreecommitdiff
path: root/redis.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2009-07-03 19:57:26 +0200
committerantirez <antirez@gmail.com>2009-07-03 19:57:26 +0200
commit774230260ff61dbc143236f690ccc73048f7fdfe (patch)
tree71d96dbacde51925aa0475dcae135fa6aec0be32 /redis.c
parentf0dec43b53a972bb8959b146d058e754e68be8c8 (diff)
downloadredis-774230260ff61dbc143236f690ccc73048f7fdfe.tar.gz
bugfix: EXPIRE now propagates to the Slave.
Diffstat (limited to 'redis.c')
-rw-r--r--redis.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/redis.c b/redis.c
index 670b66ad1..d901b7cca 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;
}
}