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
cf8f72c1
Commit
cf8f72c1
authored
Mar 25, 2014
by
antirez
Browse files
Cluster: CLUSTER SETSLOT implementation comment updated.
Update the comment since the implementation details changed.
parent
68378639
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
cf8f72c1
...
@@ -3320,9 +3320,11 @@ void clusterCommand(redisClient *c) {
...
@@ -3320,9 +3320,11 @@ void clusterCommand(redisClient *c) {
* to a new epoch so that the new version can be propagated
* to a new epoch so that the new version can be propagated
* by the cluster.
* by the cluster.
*
*
* FIXME: the new version should be agreed otherwise a race
* Note that if this ever results in a collision with another
* is possible if while a manual resharding is in progress
* node getting the same configEpoch, for example because a
* the master is failed over by a slave. */
* failover happens at the same time we close the slot, the
* configEpoch collision resolution will fix it assigning
* a different epoch to each node. */
uint64_t
maxEpoch
=
clusterGetMaxEpoch
();
uint64_t
maxEpoch
=
clusterGetMaxEpoch
();
if
(
myself
->
configEpoch
==
0
||
if
(
myself
->
configEpoch
==
0
||
...
...
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