summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-02-04 11:47:04 +0100
committerantirez <antirez@gmail.com>2015-02-13 08:57:15 +0100
commitede98af9dac41e86e30f5d12ab42b79066c4496d (patch)
tree7125118e0941ca49c16bfbee86d38a1089840c82
parentde6f74838afbfd60a0dbe59f35dff326847e8e37 (diff)
downloadredis-ede98af9dac41e86e30f5d12ab42b79066c4496d.tar.gz
No-sync: fixed missing conditional in syncCommand().
-rw-r--r--src/replication.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/replication.c b/src/replication.c
index 9c92c208f..0bf272132 100644
--- a/src/replication.c
+++ b/src/replication.c
@@ -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));