projects
/
redis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0dec43
)
bugfix: EXPIRE now propagates to the Slave.
author
antirez
<antirez@gmail.com>
Fri, 3 Jul 2009 17:57:26 +0000
(19:57 +0200)
committer
antirez
<antirez@gmail.com>
Fri, 3 Jul 2009 17:57:26 +0000
(19:57 +0200)
redis.c
patch
|
blob
|
blame
|
history
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;
}
}