diff options
author | Samuel Just <sam.just@inktank.com> | 2013-04-17 14:05:18 -0700 |
---|---|---|
committer | Samuel Just <sam.just@inktank.com> | 2013-04-19 11:00:22 -0700 |
commit | f03ba5a298cdc58c075d045e0d409961b5717900 (patch) | |
tree | 44136849066cf542398d1c5caa4381c1a9813a25 | |
parent | 8fe1b9d5a360c1784a9a54588126acb61cac27a9 (diff) | |
download | ceph-f03ba5a298cdc58c075d045e0d409961b5717900.tar.gz |
ReplicatedPG: use ReplicatedPGRef for C_OSD_OpCommit
Signed-off-by: Samuel Just <sam.just@inktank.com>
-rw-r--r-- | src/osd/ReplicatedPG.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 049dde3cb1e..3c019afbee1 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(); } }; |