]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: give obc refs to RepGather
authorSage Weil <sage.weil@dreamhost.com>
Thu, 2 Jun 2011 20:24:03 +0000 (13:24 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Thu, 2 Jun 2011 20:24:03 +0000 (13:24 -0700)
Just give the ref to RepGather instead of doing a get and put.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/osd/ReplicatedPG.cc

index 4aba1de52c044c3b91fa0a111c0d3f0f5197055f..27592089fd5a7553e0822f76e33c919067c70bbe 100644 (file)
@@ -592,9 +592,6 @@ void ReplicatedPG::do_op(MOSDOp *op)
 
   eval_repop(repop);
   repop->put();
-
-  // drop my obc reference.
-  put_object_context(obc);
 }
 
 
@@ -2714,7 +2711,6 @@ ReplicatedPG::RepGather *ReplicatedPG::new_repop(OpContext *ctx, ObjectContext *
 
   dout(10) << "new_repop mode was " << mode << dendl;
   mode.write_start();
-  obc->get();  // we take a ref
   dout(10) << "new_repop mode now " << mode << " (start_write)" << dendl;
 
   // initialize gather sets