]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: kill _create_lock_pg
authorSage Weil <sage@redhat.com>
Mon, 5 Feb 2018 21:52:56 +0000 (15:52 -0600)
committerSage Weil <sage@redhat.com>
Wed, 4 Apr 2018 13:26:51 +0000 (08:26 -0500)
Unused.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.cc
src/osd/OSD.h

index 8cebc1276de3ab41d7b8d291d8948c8c08d908d9..3fe8aca6d0e1611d1f99472fb91d6a32d2d847cb 100644 (file)
@@ -3874,39 +3874,6 @@ PG* OSD::_make_pg(
 }
 
 
-PG *OSD::_create_lock_pg(
-  OSDMapRef createmap,
-  spg_t pgid,
-  bool hold_map_lock,
-  bool backfill,
-  int role,
-  vector<int>& up, int up_primary,
-  vector<int>& acting, int acting_primary,
-  pg_history_t history,
-  const PastIntervals& pi,
-  ObjectStore::Transaction& t)
-{
-  dout(20) << "_create_lock_pg pgid " << pgid << dendl;
-
-  PG *pg = _open_lock_pg(createmap, service.get_osdmap(), pgid, true);
-
-  pg->init(
-    role,
-    up,
-    up_primary,
-    acting,
-    acting_primary,
-    history,
-    pi,
-    backfill,
-    &t);
-
-  pg->ch = store->create_new_collection(pg->coll);
-
-  dout(7) << "_create_lock_pg " << *pg << dendl;
-  return pg;
-}
-
 PGRef OSD::_lookup_pg(spg_t pgid)
 {
   while (true) {
index 544273b4154b8556642d187adca184047aa2e02f..efd5db4417f0f0818a50c07bade16127fdbc5c61 100644 (file)
@@ -1887,17 +1887,6 @@ protected:
     OSDMapRef servicemap,
     spg_t pg,
     bool no_lockdep_check=false);
-  PG *_create_lock_pg(
-    OSDMapRef createmap,
-    spg_t pgid,
-    bool hold_map_lock,
-    bool backfill,
-    int role,
-    vector<int>& up, int up_primary,
-    vector<int>& acting, int acting_primary,
-    pg_history_t history,
-    const PastIntervals& pi,
-    ObjectStore::Transaction& t);
 
   PG* _make_pg(OSDMapRef createmap, spg_t pgid);