Replica names are created by smashing the member name and the replica number together.
|
key := []byte(fmt.Sprintf("%s%d", name, i)) |
Member names that end in numbers may collide with replicas of other members. For example, with member names of member and member1 with a ReplicationFactor of 11, there will be a collision with the 11th replica of member: member10 and the 1st replica of member1: member10.
Replica names are created by smashing the member name and the replica number together.
consistent/consistent.go
Line 250 in a1a9c4a
Member names that end in numbers may collide with replicas of other members. For example, with member names of
memberandmember1with aReplicationFactorof11, there will be a collision with the 11th replica ofmember:member10and the 1st replica ofmember1:member10.