Merge "swift-manage-shard-ranges: output total compactible sequences"

This commit is contained in:
Zuul 2021-05-14 07:04:35 +00:00 committed by Gerrit Code Review
commit 9edcfad22f
2 changed files with 3 additions and 0 deletions

View File

@ -524,6 +524,8 @@ def compact_shard_ranges(broker, args):
_print_shard_range(donor, level=1)
print('can be compacted into acceptor shard range:')
_print_shard_range(acceptor, level=1)
print('Total of %d shard sequences identified for compaction.'
% len(compactible))
print('Once applied to the broker these changes will result in shard '
'range compaction the next time the sharder runs.')

View File

@ -894,6 +894,7 @@ class TestManageShardRanges(unittest.TestCase):
" '.shards_a",
" objects: 100001, tombstones: 999, lower: 'obj79'",
" state: active, upper: 'obj89'",
'Total of 2 shard sequences identified for compaction.',
'Once applied to the broker these changes will result in '
'shard range compaction the next time the sharder runs.',
]