Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
ede98af9
Commit
ede98af9
authored
Feb 04, 2015
by
antirez
Browse files
No-sync: fixed missing conditional in syncCommand().
parent
de6f7483
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/replication.c
View file @
ede98af9
...
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment