Browse Source

Merge "relinker: trivial comment and test fixes"

changes/80/785280/1
Zuul 2 weeks ago
committed by Gerrit Code Review
parent
commit
4780f812bc
2 changed files with 1 additions and 2 deletions
  1. +1
    -1
      swift/cli/relinker.py
  2. +0
    -1
      test/unit/cli/test_relinker.py

+ 1
- 1
swift/cli/relinker.py View File

@ -269,7 +269,7 @@ class Relinker(object):
start = self.next_part_power - 1
stop = max(start - self.conf['link_check_limit'], -1)
for check_part_power in range(start, stop, -1):
# Try to create the link from each of 3 previous part power
# Try to create the link from each of several previous part power
# locations. If an attempt succeeds then either a link was made or
# an existing link with the same inode as the next part power
# location was found: either is acceptable. The part power location


+ 0
- 1
test/unit/cli/test_relinker.py View File

@ -1397,7 +1397,6 @@ class TestRelinker(unittest.TestCase):
self.assertIn('2 hash dirs processed (cleanup=False) '
'(2 files, 0 linked, 1 removed, 0 errors)',
info_lines)
print(info_lines)
with open(new_filepath, 'r') as fd:
self.assertEqual(old_filepath, fd.read())
self.assertFalse(os.path.exists(older_filepath))


Loading…
Cancel
Save