diff options
author | Samuel Just <sam.just@inktank.com> | 2013-04-17 13:51:36 -0700 |
---|---|---|
committer | Samuel Just <sam.just@inktank.com> | 2013-04-19 11:00:21 -0700 |
commit | 2f9a35ac3d88027a95511b14c0bf973df01778c7 (patch) | |
tree | 8083e5dc9af4b5c4aa2661f8b4feb201b5f60ab0 | |
parent | 8bd89e12f86e64e285d7f2d88716267c41684311 (diff) | |
download | ceph-2f9a35ac3d88027a95511b14c0bf973df01778c7.tar.gz |
PG: use PGRef for C_PG_FinishRecovery
Signed-off-by: Samuel Just <sam.just@inktank.com>
-rw-r--r-- | src/osd/PG.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/osd/PG.cc b/src/osd/PG.cc index bd14f8eef7c..6d2854dbf88 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -1858,10 +1858,8 @@ bool PG::queue_scrub() } struct C_PG_FinishRecovery : public Context { - PG *pg; - C_PG_FinishRecovery(PG *p) : pg(p) { - pg->get(); - } + PGRef pg; + C_PG_FinishRecovery(PG *p) : pg(p) {} void finish(int r) { pg->_finish_recovery(this); } @@ -1920,7 +1918,6 @@ void PG::_finish_recovery(Context *c) dout(10) << "_finish_recovery -- stale" << dendl; } unlock(); - put(); } void PG::start_recovery_op(const hobject_t& soid) |