]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cls/rgw: remove rgw_bucket_dir_entry_meta default ctor
authorCasey Bodley <cbodley@redhat.com>
Tue, 3 Sep 2024 16:02:08 +0000 (12:02 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 5 Sep 2024 17:23:40 +0000 (13:23 -0400)
to allow aggregate initialization

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/cls/rgw/cls_rgw_types.h

index 876154f01d83a0fbabba9280d976f085eb9c8e19..6b8d8a7abeae8383de5a7d5580385b7522f8f280 100644 (file)
@@ -197,20 +197,17 @@ inline std::ostream& operator<<(std::ostream& out, RGWObjCategory c) {
 }
 
 struct rgw_bucket_dir_entry_meta {
-  RGWObjCategory category;
-  uint64_t size;
+  RGWObjCategory category = RGWObjCategory::None;
+  uint64_t size = 0;
   ceph::real_time mtime;
   std::string etag;
   std::string owner;
   std::string owner_display_name;
   std::string content_type;
-  uint64_t accounted_size;
+  uint64_t accounted_size = 0;
   std::string user_data;
   std::string storage_class;
-  bool appendable;
-
-  rgw_bucket_dir_entry_meta() :
-    category(RGWObjCategory::None), size(0), accounted_size(0), appendable(false) { }
+  bool appendable = false;
 
   void encode(ceph::buffer::list &bl) const {
     ENCODE_START(7, 3, bl);