]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: default-initialize delete_multi_obj_op_meta 49142/head
authorCasey Bodley <cbodley@redhat.com>
Tue, 29 Nov 2022 18:30:04 +0000 (13:30 -0500)
committerCasey Bodley <cbodley@redhat.com>
Tue, 29 Nov 2022 21:42:12 +0000 (16:42 -0500)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit d7cfbdac1a07feb2dfd108add4a4cdc161a5ddac)

src/rgw/rgw_log.h

index 5813b442438a9a2644af8f0d695e570463d520a3..5e0805b01f78bfcf5d458b8acc3c01832094a075 100644 (file)
@@ -17,9 +17,13 @@ class RGWRados;
 class RGWOp;
 
 struct delete_multi_obj_entry {
-  std::string key, version_id, error_message, marker_version_id;
-  uint32_t http_status;
-  bool error, delete_marker;
+  std::string key;
+  std::string version_id;
+  std::string error_message;
+  std::string marker_version_id;
+  uint32_t http_status = 0;
+  bool error = false;
+  bool delete_marker = false;
 
   void encode(bufferlist &bl) const {
     ENCODE_START(1, 1, bl);
@@ -48,7 +52,8 @@ struct delete_multi_obj_entry {
 WRITE_CLASS_ENCODER(delete_multi_obj_entry)
 
 struct delete_multi_obj_op_meta {
-  uint32_t num_ok, num_err;
+  uint32_t num_ok = 0;
+  uint32_t num_err = 0;
   std::vector<delete_multi_obj_entry> objects;
 
   void encode(bufferlist &bl) const {