]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: kill pass-through _open_pg
authorSage Weil <sage@redhat.com>
Fri, 9 Feb 2018 22:15:00 +0000 (16:15 -0600)
committerSage Weil <sage@redhat.com>
Wed, 4 Apr 2018 13:26:55 +0000 (08:26 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.cc
src/osd/OSD.h

index bcc2800b8bc3c0c510a972775f0048f5dd0d7fe9..3014753b5257b191fcace49725fe2a75de201448 100644 (file)
@@ -3641,14 +3641,6 @@ void OSD::recursive_remove_collection(CephContext* cct,
 // ======================================================
 // PG's
 
-PGRef OSD::_open_pg(
-  OSDMapRef createmap,
-  spg_t pgid)
-{
-  PGRef pg = _make_pg(createmap, pgid);
-  return pg;
-}
-
 PG* OSD::_make_pg(
   OSDMapRef createmap,
   spg_t pgid)
@@ -3829,9 +3821,9 @@ void OSD::load_pgs()
          assert(0 == "Missing map in load_pgs");
        }
       }
-      pg = _open_pg(pgosdmap, pgid);
+      pg = _make_pg(pgosdmap, pgid);
     } else {
-      pg = _open_pg(osdmap, pgid);
+      pg = _make_pg(osdmap, pgid);
     }
     // there can be no waiters here, so we don't call wake_pg_waiters
 
@@ -3905,7 +3897,7 @@ PGRef OSD::handle_pg_create_info(OSDMapRef osdmap, const PGCreateInfo *info)
     role = -1;
   }
 
-  PGRef pg = _open_pg(createmap, pgid);
+  PGRef pg = _make_pg(createmap, pgid);
   pg->ch = store->create_new_collection(pg->coll);
 
   pg->lock(true);
index 978846736022c7119762eb8e8abd03bbda761fcc..f870737916881872843ec7d71f2a05f1fc9027ba 100644 (file)
@@ -1811,10 +1811,6 @@ public:
   PG   *lookup_lock_pg(spg_t pgid);
 
 protected:
-  PGRef _open_pg(
-    OSDMapRef createmap,   ///< map pg is created in
-    spg_t pg);
-
   PG* _make_pg(OSDMapRef createmap, spg_t pgid);
 
   bool maybe_wait_for_max_pg(OSDMapRef osdmap, spg_t pgid, bool is_mon_create);