]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG::make_writeable: fill in ssc on clone 1555/head
authorSamuel Just <sam.just@inktank.com>
Mon, 24 Mar 2014 22:38:11 +0000 (15:38 -0700)
committerSamuel Just <sam.just@inktank.com>
Wed, 26 Mar 2014 18:39:00 +0000 (11:39 -0700)
ssc should always be filled in on live ObjectContexts.

Fixes: #7835
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/ReplicatedPG.cc

index faf00a720acac08de328df8a5acf0b41401d678b..372a683b17f521ab47530f71ff1863d18d548fe6 100644 (file)
@@ -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;