mirror of
https://github.com/ceph/ceph
synced 2024-12-25 21:03:31 +00:00
Merge pull request #53813 from cfsnyder/wip-63092
rgw: add versioning info to radosgw-admin bucket stats output Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
This commit is contained in:
commit
d7e88292db
@ -1290,6 +1290,8 @@ static int bucket_stats(rgw::sal::Driver* driver,
|
||||
return ret;
|
||||
}
|
||||
|
||||
const RGWBucketInfo& bucket_info = bucket->get_info();
|
||||
|
||||
const auto& index = bucket->get_info().get_current_index();
|
||||
if (is_layout_indexless(index)) {
|
||||
cerr << "error, indexless buckets do not maintain stats; bucket=" <<
|
||||
@ -1320,6 +1322,10 @@ static int bucket_stats(rgw::sal::Driver* driver,
|
||||
formatter->dump_string("id", bucket->get_bucket_id());
|
||||
formatter->dump_string("marker", bucket->get_marker());
|
||||
formatter->dump_stream("index_type") << bucket->get_info().layout.current_index.layout.type;
|
||||
formatter->dump_bool("versioned", bucket_info.versioned());
|
||||
formatter->dump_bool("versioning_enabled", bucket_info.versioning_enabled());
|
||||
formatter->dump_bool("object_lock_enabled", bucket_info.obj_lock_enabled());
|
||||
formatter->dump_bool("mfa_enabled", bucket_info.mfa_enabled());
|
||||
::encode_json("owner", bucket->get_info().owner, formatter);
|
||||
formatter->dump_string("ver", bucket_ver);
|
||||
formatter->dump_string("master_ver", master_ver);
|
||||
|
Loading…
Reference in New Issue
Block a user