]> git.saurik.com Git - redis.git/blobdiff - redis.c
append only file loading fixed
[redis.git] / redis.c
diff --git a/redis.c b/redis.c
index cebcdb2f7f2ccc276ec3f586b36c5ead83946035..2d233311772b0f01be3b7429a68fb6ea98c30808 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -5346,6 +5346,9 @@ static struct redisClient *createFakeClient(void) {
     c->argc = 0;
     c->argv = NULL;
     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();
     listSetFreeMethod(c->reply,decrRefCount);
     listSetDupMethod(c->reply,dupClientReplyValue);