From: Samuel Just Date: Wed, 17 Apr 2013 21:05:18 +0000 (-0700) Subject: ReplicatedPG: use ReplicatedPGRef for C_OSD_OpCommit X-Git-Tag: v0.61~136^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f03ba5a298cdc58c075d045e0d409961b5717900;p=ceph.git ReplicatedPG: use ReplicatedPGRef for C_OSD_OpCommit Signed-off-by: Samuel Just --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 049dde3cb1e3..3c019afbee17 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -3710,17 +3710,15 @@ public: class C_OSD_OpCommit : public Context { public: - ReplicatedPG *pg; + ReplicatedPGRef pg; ReplicatedPG::RepGather *repop; C_OSD_OpCommit(ReplicatedPG *p, ReplicatedPG::RepGather *rg) : pg(p), repop(rg) { repop->get(); - pg->get(); // we're copying the pointer } void finish(int r) { pg->op_commit(repop); - pg->put(); } };