]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
messages/MOSDRepScrub.h: initialize member variable in constructor
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 6 Feb 2013 11:02:50 +0000 (12:02 +0100)
committerSage Weil <sage@inktank.com>
Wed, 6 Feb 2013 16:42:04 +0000 (08:42 -0800)
Initialize chunky and deep bool member variables in the constructor
with false.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/messages/MOSDRepScrub.h

index 2d3a66d96af17cb993d7104db1040f9a1643a132..4fae008c17e4dd3c8a4aa7d4167e86c9bf6d5344 100644 (file)
@@ -36,7 +36,10 @@ struct MOSDRepScrub : public Message {
   hobject_t end;         // upper bound of scrub, exclusive
   bool deep;             // true if scrub should be deep
 
-  MOSDRepScrub() : Message(MSG_OSD_REP_SCRUB, HEAD_VERSION, COMPAT_VERSION) { }
+  MOSDRepScrub() : Message(MSG_OSD_REP_SCRUB, HEAD_VERSION, COMPAT_VERSION),
+      chunky(false),
+      deep(false) { }
+
   MOSDRepScrub(pg_t pgid, eversion_t scrub_from, eversion_t scrub_to,
               epoch_t map_epoch)
     : Message(MSG_OSD_REP_SCRUB, HEAD_VERSION, COMPAT_VERSION),