mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
bugfix: EXPIRE now propagates to the Slave.
This commit is contained in:
parent
f0dec43b53
commit
774230260f
6
redis.c
6
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user