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

This commit is contained in:
antirez 2015-02-04 11:47:04 +01:00
parent de6f74838a
commit ede98af9da

View File

@ -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));