]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PeeringState: cleanup dead code in PeeringState::init 41527/head
authorMisono Tomohiro <misono.tomohiro@jp.fujitsu.com>
Thu, 20 May 2021 12:35:16 +0000 (21:35 +0900)
committertm <tm@localhost.localdomain>
Tue, 25 May 2021 11:52:49 +0000 (20:52 +0900)
Argument 'backfill' in PeeringState::init is always set to
false. Commit log shows this is originally for _create_lock_pg
which is removed in d9dcaa79b779. So, just remove dead code.

Signed-off-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com>
src/crimson/osd/osd.cc
src/crimson/osd/pg.cc
src/crimson/osd/pg.h
src/osd/OSD.cc
src/osd/PG.cc
src/osd/PG.h
src/osd/PeeringState.cc
src/osd/PeeringState.h

index ab9862ae555658b9bf36dc61ab3a8ac72cb424d6..99854546dd72a58a48dae81422955223dc08c396 100644 (file)
@@ -940,7 +940,6 @@ seastar::future<Ref<PG>> OSD::handle_pg_create_info(
           acting_primary,
           info->history,
           info->past_intervals,
-          false,
           rctx.transaction);
 
         return shard_services.start_operation<PGAdvanceMap>(
index 35b41fbc2944b87df9fbe9f5dbf2b16887cffbcd..9693680154b9eef4d0e8dd3670fa1700db8be17e 100644 (file)
@@ -405,12 +405,11 @@ void PG::init(
   const vector<int>& newacting, int new_acting_primary,
   const pg_history_t& history,
   const PastIntervals& pi,
-  bool backfill,
   ObjectStore::Transaction &t)
 {
   peering_state.init(
     role, newup, new_up_primary, newacting,
-    new_acting_primary, history, pi, backfill, t);
+    new_acting_primary, history, pi, t);
 }
 
 seastar::future<> PG::read_state(crimson::os::FuturizedStore* store)
index 45958c4b8e2ffea1a9707effb55fa2c4cf89c91c..8ec5a06ebb65b00da564d7ea3c6d36a637460bb0 100644 (file)
@@ -465,7 +465,6 @@ public:
     int acting_primary,
     const pg_history_t& history,
     const PastIntervals& pim,
-    bool backfill,
     ceph::os::Transaction &t);
 
   seastar::future<> read_state(crimson::os::FuturizedStore* store);
index 1cd3cf9fb20ff79adfd75920d56015ae5ffcf8d5..52101be2d0d9885d4b8fa533b61ac248e374a822 100644 (file)
@@ -4953,7 +4953,6 @@ PGRef OSD::handle_pg_create_info(const OSDMapRef& osdmap,
     acting_primary,
     info->history,
     info->past_intervals,
-    false,
     rctx.transaction);
 
   pg->init_collection_pool_opts();
index 82c2bf2bf8fd01f2d686f9a29c65938209efd063..d765995782cb6840958d32ddf401b026423765a5 100644 (file)
@@ -859,12 +859,11 @@ void PG::init(
   const vector<int>& newacting, int new_acting_primary,
   const pg_history_t& history,
   const PastIntervals& pi,
-  bool backfill,
   ObjectStore::Transaction &t)
 {
   recovery_state.init(
     role, newup, new_up_primary, newacting,
-    new_acting_primary, history, pi, backfill, t);
+    new_acting_primary, history, pi, t);
 }
 
 void PG::shutdown()
index 3ac023c1f8469d0a459cd4f7aca55ea648780fe7..b977c98e056583a7796ceb5676aae565baec2afe 100644 (file)
@@ -337,7 +337,6 @@ public:
     int acting_primary,
     const pg_history_t& history,
     const PastIntervals& pim,
-    bool backfill,
     ObjectStore::Transaction &t);
 
   /// read existing pg state off disk
index a1e59c4bcd72e10165e11e8a9d7ce9fde765ee7e..5ae0884821282e435d91fdde309ac67aa78af680 100644 (file)
@@ -3862,7 +3862,6 @@ void PeeringState::init(
   const vector<int>& newacting, int new_acting_primary,
   const pg_history_t& history,
   const PastIntervals& pi,
-  bool backfill,
   ObjectStore::Transaction &t)
 {
   psdout(10) << "init role " << role << " up "
@@ -3891,13 +3890,6 @@ void PeeringState::init(
     pg_log.set_missing_may_contain_deletes();
   }
 
-  if (backfill) {
-    psdout(10) << __func__ << ": Setting backfill" << dendl;
-    info.set_last_backfill(hobject_t());
-    info.last_complete = info.last_update;
-    pg_log.mark_log_for_rewrite();
-  }
-
   on_new_interval();
 
   dirty_info = true;
index d8615ec5d07c327519be452f40a136a1a3a5a846..68237e4d8d09efc43b65fa00360a66c5b90afd0a 100644 (file)
@@ -1719,7 +1719,6 @@ public:
     const std::vector<int>& newacting, int new_acting_primary,
     const pg_history_t& history,
     const PastIntervals& pi,
-    bool backfill,
     ObjectStore::Transaction &t);
 
   /// Init pg instance from disk state