]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/osd_types: default head_exists = true
authorSage Weil <sage@redhat.com>
Fri, 1 Sep 2017 17:34:31 +0000 (13:34 -0400)
committerSage Weil <sage@redhat.com>
Thu, 21 Sep 2017 18:29:33 +0000 (14:29 -0400)
This will be helpful as we start removing code that would otherwise
set this to true in some convoluted way.

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

index 1ec5e52ea93cc4f7c6ff13f55b1fb0ce1306345a..77e85ba8156a9f82ce94276d98d31519885eb7b4 100644 (file)
@@ -4452,7 +4452,7 @@ struct SnapSet {
   map<snapid_t, uint64_t> clone_size;
   map<snapid_t, vector<snapid_t>> clone_snaps; // descending
 
-  SnapSet() : seq(0), head_exists(false) {}
+  SnapSet() : seq(0), head_exists(true) {}
   explicit SnapSet(bufferlist& bl) {
     bufferlist::iterator p = bl.begin();
     decode(p);