mirror of
https://github.com/redis/redis.git
synced 2026-05-28 04:02:46 -04: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Reference in a new issue