From: Casey Bodley Date: Tue, 29 Nov 2022 18:30:04 +0000 (-0500) Subject: rgw: default-initialize delete_multi_obj_op_meta X-Git-Tag: v18.1.0~795^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d7cfbdac1a07feb2dfd108add4a4cdc161a5ddac;p=ceph.git rgw: default-initialize delete_multi_obj_op_meta Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_log.h b/src/rgw/rgw_log.h index 0236bfad13a8..5e8b275c6b3b 100644 --- a/src/rgw/rgw_log.h +++ b/src/rgw/rgw_log.h @@ -14,9 +14,13 @@ 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 objects; void encode(bufferlist &bl) const {