mirror of
https://github.com/fluencelabs/redis
synced 2025-04-10 11:16:06 +00:00
increment server.dirty in restore command to make sure it is replicated and increments the dirty count for persistence concerns.
This commit is contained in:
parent
cd73df62af
commit
2a95c944ff
@ -1421,6 +1421,7 @@ void restoreCommand(redisClient *c) {
|
|||||||
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],time(NULL)+ttl);
|
||||||
addReply(c,shared.ok);
|
addReply(c,shared.ok);
|
||||||
|
server.dirty++;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* MIGRATE host port key dbid timeout */
|
/* MIGRATE host port key dbid timeout */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user