Commit ede98af9 authored by antirez's avatar antirez
Browse files

No-sync: fixed missing conditional in syncCommand().

parent de6f7483
......@@ -480,8 +480,8 @@ void syncCommand(redisClient *c) {
return;
}
/* Accept the slave ASAP if it is running in no-sync mode. */
goto attach_slave;
/* Accept the slave ASAP if it requested no-sync mode. */
if (c->flags & REDIS_SLAVE_NO_SYNC) goto attach_slave;
redisLog(REDIS_NOTICE,"Slave %s asks for synchronization",
replicationGetSlaveName(c));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment