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;
|
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));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user