]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: default-initialize delete_multi_obj_op_meta
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 18:36:33 +0000 (13:36 -0500)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_log.h

index 0236bfad13a8701c22351cf3b737891aeca06131..5e8b275c6b3bb87d877019805fd53da30ecf84bd 100644 (file)
 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);
@@ -45,7 +49,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 {