]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd: drop useless get_possibly_deleted_pool_pg_num
authorYan Jun <yan.jun8@zte.com.cn>
Fri, 30 Aug 2019 05:55:16 +0000 (13:55 +0800)
committerYan Jun <yan.jun8@zte.com.cn>
Fri, 30 Aug 2019 05:55:16 +0000 (13:55 +0800)
Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
src/osd/OSD.h

index 742a4e0269ebd1789a077998066a9ae615eda811..794b4dea5b03c7d38e4717fd9135ae8227307b4a 100644 (file)
@@ -714,15 +714,6 @@ public:
     deleted_pool_pg_nums[pool] = pg_num;
   }
 
-  /// get pgnum from newmap or, if pool was deleted, last map pool existed in
-  int get_possibly_deleted_pool_pg_num(OSDMapRef newmap,
-                                      int64_t pool) {
-    if (newmap->have_pg_pool(pool)) {
-      return newmap->get_pg_num(pool);
-    }
-    return get_deleted_pool_pg_num(pool);
-  }
-
   /// identify split child pgids over a osdmap interval
   void identify_splits_and_merges(
     OSDMapRef old_map,