diff options
author | antirez <antirez@gmail.com> | 2009-07-03 19:57:26 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2009-07-03 19:57:26 +0200 |
commit | 774230260ff61dbc143236f690ccc73048f7fdfe (patch) | |
tree | 71d96dbacde51925aa0475dcae135fa6aec0be32 /redis.c | |
parent | f0dec43b53a972bb8959b146d058e754e68be8c8 (diff) | |
download | redis-774230260ff61dbc143236f690ccc73048f7fdfe.tar.gz |
bugfix: EXPIRE now propagates to the Slave.
Diffstat (limited to 'redis.c')
-rw-r--r-- | redis.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; } } |