1
0
mirror of https://github.com/fluencelabs/redis synced 2025-03-31 23:01:03 +00:00

append only file loading fixed

This commit is contained in:
antirez 2009-11-01 11:05:50 +01:00
parent f80dff6212
commit 9387d17dfe

@ -5346,6 +5346,9 @@ static struct redisClient *createFakeClient(void) {
c->argc = 0; c->argc = 0;
c->argv = NULL; c->argv = NULL;
c->flags = 0; c->flags = 0;
/* We set the fake client as a slave waiting for the synchronization
* so that Redis will not try to send replies to this client. */
c->replstate = REDIS_REPL_WAIT_BGSAVE_START;
c->reply = listCreate(); c->reply = listCreate();
listSetFreeMethod(c->reply,decrRefCount); listSetFreeMethod(c->reply,decrRefCount);
listSetDupMethod(c->reply,dupClientReplyValue); listSetDupMethod(c->reply,dupClientReplyValue);