diff options
author | antirez <antirez@gmail.com> | 2015-02-04 11:47:04 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2015-02-13 08:57:15 +0100 |
commit | ede98af9dac41e86e30f5d12ab42b79066c4496d (patch) | |
tree | 7125118e0941ca49c16bfbee86d38a1089840c82 | |
parent | de6f74838afbfd60a0dbe59f35dff326847e8e37 (diff) | |
download | redis-ede98af9dac41e86e30f5d12ab42b79066c4496d.tar.gz |
No-sync: fixed missing conditional in syncCommand().
-rw-r--r-- | src/replication.c | 4 |
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)); |