From: Sage Weil Date: Mon, 5 Feb 2018 21:52:56 +0000 (-0600) Subject: osd: kill _create_lock_pg X-Git-Tag: v13.1.0~390^2~85 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d9dcaa79b7799d4e7758d7de1d080f9394ad89e0;p=ceph.git osd: kill _create_lock_pg Unused. Signed-off-by: Sage Weil --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 8cebc1276de3..3fe8aca6d0e1 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -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& up, int up_primary, - vector& 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) { diff --git a/src/osd/OSD.h b/src/osd/OSD.h index 544273b4154b..efd5db4417f0 100644 --- a/src/osd/OSD.h +++ b/src/osd/OSD.h @@ -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& up, int up_primary, - vector& acting, int acting_primary, - pg_history_t history, - const PastIntervals& pi, - ObjectStore::Transaction& t); PG* _make_pg(OSDMapRef createmap, spg_t pgid);