Commit cf8f72c1 authored by antirez's avatar antirez
Browse files

Cluster: CLUSTER SETSLOT implementation comment updated.

Update the comment since the implementation details changed.
parent 68378639
......@@ -3320,9 +3320,11 @@ void clusterCommand(redisClient *c) {
* to a new epoch so that the new version can be propagated
* by the cluster.
*
* FIXME: the new version should be agreed otherwise a race
* is possible if while a manual resharding is in progress
* the master is failed over by a slave. */
* Note that if this ever results in a collision with another
* node getting the same configEpoch, for example because a
* 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();
if (myself->configEpoch == 0 ||
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment