Merge "swift-manage-shard-ranges: output total compactible sequences"
This commit is contained in:
commit
9edcfad22f
@ -524,6 +524,8 @@ def compact_shard_ranges(broker, args):
|
|||||||
_print_shard_range(donor, level=1)
|
_print_shard_range(donor, level=1)
|
||||||
print('can be compacted into acceptor shard range:')
|
print('can be compacted into acceptor shard range:')
|
||||||
_print_shard_range(acceptor, level=1)
|
_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 '
|
print('Once applied to the broker these changes will result in shard '
|
||||||
'range compaction the next time the sharder runs.')
|
'range compaction the next time the sharder runs.')
|
||||||
|
|
||||||
|
@ -894,6 +894,7 @@ class TestManageShardRanges(unittest.TestCase):
|
|||||||
" '.shards_a",
|
" '.shards_a",
|
||||||
" objects: 100001, tombstones: 999, lower: 'obj79'",
|
" objects: 100001, tombstones: 999, lower: 'obj79'",
|
||||||
" state: active, upper: 'obj89'",
|
" state: active, upper: 'obj89'",
|
||||||
|
'Total of 2 shard sequences identified for compaction.',
|
||||||
'Once applied to the broker these changes will result in '
|
'Once applied to the broker these changes will result in '
|
||||||
'shard range compaction the next time the sharder runs.',
|
'shard range compaction the next time the sharder runs.',
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user