Skip to content

Commit

Permalink
Merge pull request #53027 from ivancich/wip-add-versioning-to-stats
Browse files Browse the repository at this point in the history
rgw: add versioning status during `radosgw-admin bucket stats`

Reviewed-by: Adam Emerson <[email protected]>
  • Loading branch information
ivancich authored Sep 7, 2023
2 parents 7077a7f + ea2d7ff commit 968573b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rgw/driver/rados/rgw_bucket.cc
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,7 @@ static int bucket_stats(rgw::sal::Driver* driver,
formatter->dump_int("num_shards",
bucket->get_info().layout.current_index.layout.normal.num_shards);
formatter->dump_string("tenant", bucket->get_tenant());
formatter->dump_string("versioning", bucket->versioned() ? (bucket->versioning_enabled() ? "enabled" : "suspended") : "off");
formatter->dump_string("zonegroup", bucket->get_info().zonegroup);
formatter->dump_string("placement_rule", bucket->get_info().placement_rule.to_str());
::encode_json("explicit_placement", bucket->get_key().explicit_placement, formatter);
Expand Down

0 comments on commit 968573b

Please sign in to comment.