]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: fix snap_trimmer obc ref
authorSage Weil <sage@newdream.net>
Fri, 17 Jun 2011 02:40:25 +0000 (19:40 -0700)
committerSage Weil <sage@newdream.net>
Fri, 17 Jun 2011 02:44:06 +0000 (19:44 -0700)
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 <sage@newdream.net>
src/osd/ReplicatedPG.cc

index f430064a965e5b9b4c3250b76199fba92a90f5fb..d68f7a277c198cd6e0746ac8416accb949d01caf 100644 (file)
@@ -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);