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
ca6fc4f0
Commit
ca6fc4f0
authored
Sep 24, 2016
by
charsyam
Browse files
Simple change just using slaves instead of server.slaves
parent
6e866ee0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/replication.c
View file @
ca6fc4f0
...
@@ -244,7 +244,7 @@ void replicationFeedSlaves(list *slaves, int dictid, robj **argv, int argc) {
...
@@ -244,7 +244,7 @@ void replicationFeedSlaves(list *slaves, int dictid, robj **argv, int argc) {
}
}
/* Write the command to every slave. */
/* Write the command to every slave. */
listRewind
(
server
.
slaves
,
&
li
);
listRewind
(
slaves
,
&
li
);
while
((
ln
=
listNext
(
&
li
)))
{
while
((
ln
=
listNext
(
&
li
)))
{
client
*
slave
=
ln
->
value
;
client
*
slave
=
ln
->
value
;
...
...
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