File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1290,6 +1290,8 @@ static int bucket_stats(rgw::sal::Driver* driver,
12901290 return ret;
12911291 }
12921292
1293+ const RGWBucketInfo& bucket_info = bucket->get_info ();
1294+
12931295 const auto & index = bucket->get_info ().get_current_index ();
12941296 if (is_layout_indexless (index)) {
12951297 cerr << " error, indexless buckets do not maintain stats; bucket=" <<
@@ -1320,6 +1322,10 @@ static int bucket_stats(rgw::sal::Driver* driver,
13201322 formatter->dump_string (" id" , bucket->get_bucket_id ());
13211323 formatter->dump_string (" marker" , bucket->get_marker ());
13221324 formatter->dump_stream (" index_type" ) << bucket->get_info().layout.current_index.layout.type;
1325+ formatter->dump_bool (" versioned" , bucket_info.versioned());
1326+ formatter->dump_bool (" versioning_enabled" , bucket_info.versioning_enabled());
1327+ formatter->dump_bool (" object_lock_enabled" , bucket_info.obj_lock_enabled());
1328+ formatter->dump_bool (" mfa_enabled" , bucket_info.mfa_enabled());
13231329 ::encode_json (" owner" , bucket->get_info ().owner, formatter);
13241330 formatter->dump_string (" ver" , bucket_ver);
13251331 formatter->dump_string (" master_ver" , master_ver);
You can’t perform that action at this time.
0 commit comments