From 335b918dc07162eab3185b900163bc01d3ecd927 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Wed, 27 Jun 2012 18:09:37 -0700 Subject: [PATCH] DBObjectMap: clones must inherit spos from parent Signed-off-by: Samuel Just --- src/os/DBObjectMap.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/os/DBObjectMap.cc b/src/os/DBObjectMap.cc index 584b8df721c10..dd9f218b5b901 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)); -- 2.39.5