From: Samuel Just Date: Mon, 24 Mar 2014 22:38:11 +0000 (-0700) Subject: ReplicatedPG::make_writeable: fill in ssc on clone X-Git-Tag: v0.79~70^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1555%2Fhead;p=ceph.git ReplicatedPG::make_writeable: fill in ssc on clone ssc should always be filled in on live ObjectContexts. Fixes: #7835 Signed-off-by: Samuel Just --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index faf00a720ac..372a683b17f 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -4719,6 +4719,8 @@ void ReplicatedPG::make_writeable(OpContext *ctx) ctx->clone_obc->destructor_callback = new C_PG_ObjectContext(this, ctx->clone_obc.get()); ctx->clone_obc->obs.oi = static_snap_oi; ctx->clone_obc->obs.exists = true; + ctx->clone_obc->ssc = ctx->obc->ssc; + ctx->clone_obc->ssc->ref++; if (pool.info.require_rollback()) ctx->clone_obc->attr_cache = ctx->obc->attr_cache; snap_oi = &ctx->clone_obc->obs.oi;