Merge "Ring builder code clean up follow up patch"

This commit is contained in:
Jenkins 2015-07-10 20:12:52 +00:00 committed by Gerrit Code Review
commit bd75e2c5ed

View File

@ -687,7 +687,7 @@ class RingBuilder(object):
bigness_threshold = (
max_child_replicas / tier_replicas * tier_weight[tier])
for child_tier in tier2children[tier]:
for child_tier in child_tiers:
child_weight = tier_weight[child_tier]
if child_weight == 0:
# If it's got 0 weight, it's not taking any