Commit 77423026 authored by antirez's avatar antirez
Browse files

bugfix: EXPIRE now propagates to the Slave.

parent f0dec43b
...@@ -3758,10 +3758,12 @@ static void expireCommand(redisClient *c) { ...@@ -3758,10 +3758,12 @@ static void expireCommand(redisClient *c) {
return; return;
} else { } else {
time_t when = time(NULL)+seconds; 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); addReply(c,shared.cone);
else server.dirty++;
} else {
addReply(c,shared.czero); addReply(c,shared.czero);
}
return; return;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment