From 447ea1dc31828815657b0a0f4114dab774e71ec1 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 16 Jun 2011 19:40:25 -0700 Subject: [PATCH] osd: fix snap_trimmer obc ref As of fc4cc39 new_repop claims the obc reference (from the clonerange branch) but this caller didn't get fixed. Signed-off-by: Sage Weil --- src/osd/ReplicatedPG.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index f430064a965e5..d68f7a277c198 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -808,7 +808,7 @@ bool ReplicatedPG::snap_trimmer() uint64_t old_size = obc->obs.oi.size; eversion_t old_version = obc->obs.oi.version; - RepGather *repop = new_repop(ctx, obc, rep_tid); + RepGather *repop = new_repop(ctx, obc, rep_tid); // note: new_repop claims obc, ctx, ctx->op ObjectStore::Transaction *t = &ctx->op_t; @@ -916,7 +916,6 @@ bool ReplicatedPG::snap_trimmer() eval_repop(repop); repop->put(); - put_object_context(obc); //int tr = osd->store->queue_transaction(&osr, t); //assert(tr == 0); -- 2.39.5