]> git.saurik.com Git - redis.git/commitdiff
bugfix: EXPIRE now propagates to the Slave.
authorantirez <antirez@gmail.com>
Fri, 3 Jul 2009 17:57:26 +0000 (19:57 +0200)
committerantirez <antirez@gmail.com>
Fri, 3 Jul 2009 17:57:26 +0000 (19:57 +0200)
redis.c

diff --git a/redis.c b/redis.c
index 670b66ad1e9a290ed0e53eaf316f9feb59b6bf92..d901b7ccaa7d2405b45dcdc414fb18d1e2d58560 100644 (file)
--- 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;
     }
 }