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: v17.2.6~83^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=efc50e2986be484dc84736dd4bebe95db5a94896;p=ceph.git rgw: default-initialize delete_multi_obj_op_meta Signed-off-by: Casey Bodley (cherry picked from commit d7cfbdac1a07feb2dfd108add4a4cdc161a5ddac) --- diff --git a/src/rgw/rgw_log.h b/src/rgw/rgw_log.h index cbb5fc0226f9..d23e598e3cd6 100644 --- a/src/rgw/rgw_log.h +++ b/src/rgw/rgw_log.h @@ -19,9 +19,13 @@ namespace rgw { namespace sal { 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); @@ -50,7 +54,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 {