diff options
author | Tim Burke <tim.burke@gmail.com> | 2020-06-19 11:09:11 -0700 |
---|---|---|
committer | Clay Gerrard <clay.gerrard@gmail.com> | 2020-07-22 12:29:53 -0500 |
commit | 67e3830ab92ff32d16d32320cf30b67dca671515 (patch) | |
tree | 1eca56fb551552e062337b44d665610f0eda4990 /bin | |
parent | 5cf5548a85286b09a3441176dc773c2874203a39 (diff) | |
download | swift-67e3830ab92ff32d16d32320cf30b67dca671515.tar.gz |
swift-container-info: Show shard ranges summary
The current behavior is really painful when you've got hundreds of shard
ranges in a DB. The new summary with the states is default. Users can
add a -v/--verbose flag to see the old full detail view.
Change-Id: I0a7d65f64540f99514c52a70f9157ef060a8a892
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/swift-container-info | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/swift-container-info b/bin/swift-container-info index cbb10b6ec..d832e84fd 100755 --- a/bin/swift-container-info +++ b/bin/swift-container-info @@ -42,6 +42,10 @@ if __name__ == '__main__': parser.add_option( '--drop-prefixes', default=False, action="store_true", help="When outputting metadata, drop the per-section common prefixes") + parser.add_option( + '-v', '--verbose', default=False, action="store_true", + help="Show all shard ranges. By default, only the number of shard " + "ranges is displayed if there are many shards.") options, args = parser.parse_args() |