From ede98af9dac41e86e30f5d12ab42b79066c4496d Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 4 Feb 2015 11:47:04 +0100 Subject: [PATCH] No-sync: fixed missing conditional in syncCommand(). --- src/replication.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/replication.c b/src/replication.c index 9c92c208..0bf27213 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));