min_part_hours should not larger than 255
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
In Progress
|
Medium
|
Cheng Li |
Bug Description
def _update_
"""
Updates how many hours ago each partition was moved based on the
current time. The builder won't move a partition that has been moved
more recently than min_part_hours.
"""
if elapsed_hours <= 0:
return
for part in range(self.parts):
# The "min(self.
# which was here showed up in profiling, so it got inlined.
if last_plus_elapsed < 0xff:
else:
this function make self._last_
if min_part_hours is larger that 0xff, rebalance will never work.
Changed in swift: | |
assignee: | nobody → Cheng Li (shcli) |
Changed in swift: | |
importance: | Undecided → Medium |
tags: |
added: fixed-in-gerrit removed: min-part-hours |
Fix proposed to branch: master /review. openstack. org/345524
Review: https:/