mirror of
https://github.com/fluencelabs/redis
synced 2025-06-16 10:41:22 +00:00
RESTORE ability to set a TTL fixed, bug introduced with millisecond expires.
This commit is contained in:
@ -1577,7 +1577,7 @@ void restoreCommand(redisClient *c) {
|
|||||||
|
|
||||||
/* Create the key and set the TTL if any */
|
/* Create the key and set the TTL if any */
|
||||||
dbAdd(c->db,c->argv[1],obj);
|
dbAdd(c->db,c->argv[1],obj);
|
||||||
if (ttl) setExpire(c->db,c->argv[1],time(NULL)+ttl);
|
if (ttl) setExpire(c->db,c->argv[1],mstime()+ttl);
|
||||||
signalModifiedKey(c->db,c->argv[1]);
|
signalModifiedKey(c->db,c->argv[1]);
|
||||||
addReply(c,shared.ok);
|
addReply(c,shared.ok);
|
||||||
server.dirty++;
|
server.dirty++;
|
||||||
|
Reference in New Issue
Block a user