diff options
author | Samuel Just <sam.just@inktank.com> | 2013-04-18 17:55:25 -0700 |
---|---|---|
committer | Samuel Just <sam.just@inktank.com> | 2013-04-19 11:00:21 -0700 |
commit | c04c3e59ecb8a9c04606c60d8764451756806d16 (patch) | |
tree | dfe2e19545404650ad19700b1d3462c253b9ba88 | |
parent | 1c2b66cf02c5ea26c19f26b4a520dd51ca8c418e (diff) | |
download | ceph-c04c3e59ecb8a9c04606c60d8764451756806d16.tar.gz |
OSD: use PGRef in handle_pg_remove
Signed-off-by: Samuel Just <sam.just@inktank.com>
-rw-r--r-- | src/osd/OSD.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index e3dc2e358bb..c61ad0b2d62 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -5788,10 +5788,9 @@ void OSD::handle_pg_remove(OpRequestRef op) up, acting); if (history.same_interval_since <= m->get_epoch()) { assert(pg->get_primary() == m->get_source().num()); - pg->get(); + PGRef _pg(pg); _remove_pg(pg); pg->unlock(); - pg->put(); } else { dout(10) << *pg << " ignoring remove request, pg changed in epoch " << history.same_interval_since |