mirror of
https://github.com/fluencelabs/redis
synced 2025-04-25 10:32:14 +00:00
No-sync: fixed missing conditional in syncCommand().
This commit is contained in:
parent
de6f74838a
commit
ede98af9da
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user