]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
messages: default-initialize MOSDPGRecoveryDelete[Reply] members 16584/head
authorGreg Farnum <gfarnum@redhat.com>
Wed, 26 Jul 2017 01:37:59 +0000 (18:37 -0700)
committerGreg Farnum <gfarnum@redhat.com>
Wed, 26 Jul 2017 01:37:59 +0000 (18:37 -0700)
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 <gfarnum@redhat.com>
src/messages/MOSDPGRecoveryDelete.h
src/messages/MOSDPGRecoveryDeleteReply.h

index 7d30c28f336055ba1cfd8f69fd60e4c37c0b6b43..3941f9f53e8c435f01b2a7b9f8e1e653132315a5 100644 (file)
@@ -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() {}
index aa3e1135f11d17e61e55cfde25848c46f9f79830..fe936388da972a0e5c9895392a360ee74102cda4 100644 (file)
@@ -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 {