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) { ...@@ -480,8 +480,8 @@ void syncCommand(redisClient *c) {
return; return;
} }
/* Accept the slave ASAP if it is running in no-sync mode. */ /* Accept the slave ASAP if it requested no-sync mode. */
goto attach_slave; if (c->flags & REDIS_SLAVE_NO_SYNC) goto attach_slave;
redisLog(REDIS_NOTICE,"Slave %s asks for synchronization", redisLog(REDIS_NOTICE,"Slave %s asks for synchronization",
replicationGetSlaveName(c)); 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