From: Samuel Just Date: Thu, 28 Jun 2012 01:09:37 +0000 (-0700) Subject: DBObjectMap: clones must inherit spos from parent X-Git-Tag: v0.48argonaut~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=335b918dc07162eab3185b900163bc01d3ecd927;p=ceph.git DBObjectMap: clones must inherit spos from parent Signed-off-by: Samuel Just --- diff --git a/src/os/DBObjectMap.cc b/src/os/DBObjectMap.cc index 584b8df721c..dd9f218b5b9 100644 --- a/src/os/DBObjectMap.cc +++ b/src/os/DBObjectMap.cc @@ -1098,8 +1098,10 @@ DBObjectMap::Header DBObjectMap::_generate_new_header(const hobject_t &hoid, { Header header = Header(new _Header(), RemoveOnDelete(this)); header->seq = state.seq++; - if (parent) + if (parent) { header->parent = parent->seq; + header->spos = parent->spos; + } header->num_children = 1; header->hoid = hoid; assert(!in_use.count(header->seq));