From: Greg Farnum Date: Wed, 26 Jul 2017 01:37:59 +0000 (-0700) Subject: messages: default-initialize MOSDPGRecoveryDelete[Reply] members X-Git-Tag: v12.1.2~84^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a7bc15e29a543d9b1ed43d49d523384d13b1faa3;p=ceph.git 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 --- diff --git a/src/messages/MOSDPGRecoveryDelete.h b/src/messages/MOSDPGRecoveryDelete.h index 7d30c28f33605..3941f9f53e8c4 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 aa3e1135f11d1..fe936388da972 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 {