]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/osd_types: init SnapSet::seq in ctor 768/head
authorSage Weil <sage@inktank.com>
Fri, 25 Oct 2013 05:01:06 +0000 (22:01 -0700)
committerSage Weil <sage@inktank.com>
Fri, 25 Oct 2013 19:50:17 +0000 (12:50 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/osd_types.h

index 8ceeb539c1afb7d8c8932e42aaa1e7b958e786f7..d9d9e541aed2b3d906c136c6d5ab1e323fc76270 100644 (file)
@@ -1989,7 +1989,7 @@ struct SnapSet {
   map<snapid_t, interval_set<uint64_t> > clone_overlap;  // overlap w/ next newest
   map<snapid_t, uint64_t> clone_size;
 
-  SnapSet() : head_exists(false) {}
+  SnapSet() : seq(0), head_exists(false) {}
   SnapSet(bufferlist& bl) {
     bufferlist::iterator p = bl.begin();
     decode(p);