mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05: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…
Reference in New Issue
Block a user