]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/osd_types: init coll_t::removal_seq in all ctors
authorSage Weil <sage@redhat.com>
Fri, 4 Sep 2015 01:59:00 +0000 (21:59 -0400)
committerSage Weil <sage@redhat.com>
Fri, 4 Sep 2015 01:59:00 +0000 (21:59 -0400)
CID 1322784 (#1 of 1): Uninitialized scalar variable (UNINIT)
2. uninit_use_in_call: Using uninitialized value coll.removal_seq when calling coll_t. [show details]

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/osd_types.h

index 2842c84970e7ba48b4cfb2e233f36485972fc0b3..c7503c11397d2686170b41b4bc80c22288aed0d7 100644 (file)
@@ -533,7 +533,7 @@ public:
   }
 
   explicit coll_t(spg_t pgid)
-    : type(TYPE_PG), pgid(pgid)
+    : type(TYPE_PG), pgid(pgid), removal_seq(0)
   {
     calc_str();
   }