From 6cb859553b0dd38833635498f96267945a2e86e4 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Mon, 24 Mar 2014 15:38:11 -0700 Subject: [PATCH] ReplicatedPG::make_writeable: fill in ssc on clone ssc should always be filled in on live ObjectContexts. Fixes: #7835 Signed-off-by: Samuel Just --- src/osd/ReplicatedPG.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index faf00a720acac..372a683b17f52 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; -- 2.39.5