]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
DBObjectMap: clones must inherit spos from parent
authorSamuel Just <sam.just@inktank.com>
Thu, 28 Jun 2012 01:09:37 +0000 (18:09 -0700)
committerSamuel Just <sam.just@inktank.com>
Thu, 28 Jun 2012 16:53:22 +0000 (09:53 -0700)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/os/DBObjectMap.cc

index 584b8df721c101b570def0f28b7666f8431476ef..dd9f218b5b901c8991dcb449382987c1a3486ab1 100644 (file)
@@ -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));