]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: kill _lookup_pg() method
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 3 Aug 2016 08:08:03 +0000 (16:08 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 3 Aug 2016 23:05:43 +0000 (07:05 +0800)
It is never used and I see no chance it will be used.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/OSD.cc
src/osd/OSD.h

index a1ee89be5b39c25b52e3a98b1e3bdf825dcc351b..fff7bd5b4591fc3adced58254fc6e9befa35b464 100644 (file)
@@ -3198,16 +3198,6 @@ PG *OSD::_lookup_lock_pg(spg_t pgid)
   return pg;
 }
 
-
-PG *OSD::_lookup_pg(spg_t pgid)
-{
-  RWLock::RLocker l(pg_map_lock);
-  if (!pg_map.count(pgid))
-    return NULL;
-  PG *pg = pg_map[pgid];
-  return pg;
-}
-
 PG *OSD::_lookup_lock_pg_with_map_lock_held(spg_t pgid)
 {
   assert(pg_map.count(pgid));
index 325c845e34adf99a95a09fa5900b7568f11f1088..cba0b8f96fccf1f63969642aa6b132c55bc19858 100644 (file)
@@ -2029,7 +2029,6 @@ protected:
   bool  _have_pg(spg_t pgid);
   PG   *_lookup_lock_pg_with_map_lock_held(spg_t pgid);
   PG   *_lookup_lock_pg(spg_t pgid);
-  PG   *_lookup_pg(spg_t pgid);
   PG   *_open_lock_pg(OSDMapRef createmap,
                      spg_t pg, bool no_lockdep_check=false);
   enum res_result {