Merge "Deleted comment about part power in FakeRing"

This commit is contained in:
Jenkins 2016-01-21 10:59:50 +00:00 committed by Gerrit Code Review
commit 994f3a7370

View File

@ -203,13 +203,6 @@ class FakeRing(Ring):
def __init__(self, replicas=3, max_more_nodes=0, part_power=0, def __init__(self, replicas=3, max_more_nodes=0, part_power=0,
base_port=1000): base_port=1000):
"""
:param part_power: make part calculation based on the path
If you set a part_power when you setup your FakeRing the parts you get
out of ring methods will actually be based on the path - otherwise we
exercise the real ring code, but ignore the result and return 1.
"""
self._base_port = base_port self._base_port = base_port
self.max_more_nodes = max_more_nodes self.max_more_nodes = max_more_nodes
self._part_shift = 32 - part_power self._part_shift = 32 - part_power