From 9377911b09dc8cf0d6174d409fc07bb42e750b5d Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Tue, 29 Nov 2022 13:30:04 -0500 Subject: [PATCH] rgw: default-initialize delete_multi_obj_op_meta Signed-off-by: Casey Bodley (cherry picked from commit d7cfbdac1a07feb2dfd108add4a4cdc161a5ddac) --- src/rgw/rgw_log.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/rgw/rgw_log.h b/src/rgw/rgw_log.h index 5813b442438a9..5e0805b01f78b 100644 --- a/src/rgw/rgw_log.h +++ b/src/rgw/rgw_log.h @@ -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 objects; void encode(bufferlist &bl) const { -- 2.39.5