mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +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);
|
||||
if (ttl) setExpire(c->db,c->argv[1],time(NULL)+ttl);
|
||||
addReply(c,shared.ok);
|
||||
server.dirty++;
|
||||
}
|
||||
|
||||
/* MIGRATE host port key dbid timeout */
|
||||
|
Loading…
x
Reference in New Issue
Block a user