From a7bc15e29a543d9b1ed43d49d523384d13b1faa3 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Tue, 25 Jul 2017 18:37:59 -0700 Subject: [PATCH] messages: default-initialize MOSDPGRecoveryDelete[Reply] members This makes Coverity happy and is good practice, even though we do a member-by-member initialization in the only place we create these messages. Signed-off-by: Greg Farnum --- src/messages/MOSDPGRecoveryDelete.h | 5 +++-- src/messages/MOSDPGRecoveryDeleteReply.h | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/messages/MOSDPGRecoveryDelete.h b/src/messages/MOSDPGRecoveryDelete.h index 7d30c28f336..3941f9f53e8 100644 --- a/src/messages/MOSDPGRecoveryDelete.h +++ b/src/messages/MOSDPGRecoveryDelete.h @@ -44,7 +44,7 @@ public: MOSDPGRecoveryDelete() : MOSDFastDispatchOp(MSG_OSD_PG_RECOVERY_DELETE, HEAD_VERSION, - COMPAT_VERSION) {} + COMPAT_VERSION), cost(0) {} MOSDPGRecoveryDelete(pg_shard_t from, spg_t pgid, epoch_t map_epoch, epoch_t min_epoch) @@ -53,7 +53,8 @@ public: from(from), pgid(pgid), map_epoch(map_epoch), - min_epoch(min_epoch) {} + min_epoch(min_epoch), + cost(0) {} private: ~MOSDPGRecoveryDelete() {} diff --git a/src/messages/MOSDPGRecoveryDeleteReply.h b/src/messages/MOSDPGRecoveryDeleteReply.h index aa3e1135f11..fe936388da9 100644 --- a/src/messages/MOSDPGRecoveryDeleteReply.h +++ b/src/messages/MOSDPGRecoveryDeleteReply.h @@ -26,7 +26,8 @@ struct MOSDPGRecoveryDeleteReply : public MOSDFastDispatchOp { } MOSDPGRecoveryDeleteReply() - : MOSDFastDispatchOp(MSG_OSD_PG_RECOVERY_DELETE_REPLY, HEAD_VERSION, COMPAT_VERSION) + : MOSDFastDispatchOp(MSG_OSD_PG_RECOVERY_DELETE_REPLY, HEAD_VERSION, COMPAT_VERSION), + map_epoch(0), min_epoch(0) {} void decode_payload() override { -- 2.47.3