]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cls/rgw: add rgw_bucket_dir_stats alias
authorCasey Bodley <cbodley@redhat.com>
Mon, 8 Nov 2021 14:32:33 +0000 (09:32 -0500)
committerCasey Bodley <cbodley@redhat.com>
Fri, 19 Nov 2021 16:07:46 +0000 (11:07 -0500)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/cls/rgw/cls_rgw_types.h

index b19c46266eeaa76a6e3791a54ce4b1f09cf6866f..3e30725606be7290fb3e9cf7730463ed89bac644 100644 (file)
@@ -807,8 +807,10 @@ struct cls_rgw_bucket_instance_entry {
 };
 WRITE_CLASS_ENCODER(cls_rgw_bucket_instance_entry)
 
+using rgw_bucket_dir_stats = std::map<RGWObjCategory, rgw_bucket_category_stats>;
+
 struct rgw_bucket_dir_header {
-  std::map<RGWObjCategory, rgw_bucket_category_stats> stats;
+  rgw_bucket_dir_stats stats;
   uint64_t tag_timeout;
   uint64_t ver;
   uint64_t master_ver;