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
211dcbe3
Commit
211dcbe3
authored
Oct 02, 2013
by
antirez
Browse files
Cluster: update cluster config when slave changes master.
parent
6c4d904b
Changes
1
Show whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
211dcbe3
...
...
@@ -1086,6 +1086,9 @@ int clusterProcessPacket(clusterLink *link) {
clusterNodeRemoveSlave
(
sender
->
slaveof
,
sender
);
clusterNodeAddSlave
(
master
,
sender
);
sender
->
slaveof
=
master
;
/* Update config. */
update_config
=
1
;
}
}
}
...
...
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