"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "doc/source/admin/objectstorage-troubleshoot.rst" between
swift-2.19.1.tar.gz and swift-2.21.0.tar.gz

About: OpenStack swift is software for creating redundant, scalable object storage using clusters of commodity servers to store terabytes or even petabytes of accessible data (now supporting storage policies).
The "Stein" series (latest release).

objectstorage-troubleshoot.rst  (swift-2.19.1):objectstorage-troubleshoot.rst  (swift-2.21.0)
skipping to change at line 167 skipping to change at line 167
>>> import math >>> import math
>>> partitions = len(ring._replica2part2dev_id[0]) >>> partitions = len(ring._replica2part2dev_id[0])
>>> replicas = len(ring._replica2part2dev_id) >>> replicas = len(ring._replica2part2dev_id)
>>> builder = RingBuilder(int(math.log(partitions, 2)), replicas, 1) >>> builder = RingBuilder(int(math.log(partitions, 2)), replicas, 1)
>>> builder.devs = ring.devs >>> builder.devs = ring.devs
>>> builder._replica2part2dev = ring._replica2part2dev_id >>> builder._replica2part2dev = ring._replica2part2dev_id
>>> builder._last_part_moves_epoch = 0 >>> builder._last_part_moves_epoch = 0
>>> from array import array >>> from array import array
>>> builder._last_part_moves = array('B', (0 for _ in xrange(partitions))) >>> builder._last_part_moves = array('B', (0 for _ in range(partitions)))
>>> builder._set_parts_wanted() >>> builder._set_parts_wanted()
>>> for d in builder._iter_devs(): >>> for d in builder._iter_devs():
d['parts'] = 0 d['parts'] = 0
>>> for p2d in builder._replica2part2dev: >>> for p2d in builder._replica2part2dev:
for dev_id in p2d: for dev_id in p2d:
builder.devs[dev_id]['parts'] += 1 builder.devs[dev_id]['parts'] += 1
This is the extent of the recoverable fields. This is the extent of the recoverable fields.
#. For ``min_part_hours`` you either have to remember what the value you #. For ``min_part_hours`` you either have to remember what the value you
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)