]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/os/seastore/segment_cleaner: drop unused code
authorYingxin Cheng <yingxin.cheng@intel.com>
Thu, 10 Feb 2022 04:57:36 +0000 (12:57 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Thu, 10 Feb 2022 05:09:44 +0000 (13:09 +0800)
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/os/seastore/segment_cleaner.h

index accd3baece13131870446743fddbf1e3c6287e4d..67342135b5e1444236e719806e33e1ac74c12048 100644 (file)
@@ -676,8 +676,6 @@ private:
   /// populated if there is an IO blocked on hard limits
   std::optional<seastar::promise<>> blocked_io_wake;
 
-  std::vector<device_id_t> effective_devices;
-
 public:
   SegmentCleaner(
     config_t config,
@@ -694,11 +692,6 @@ public:
     journal_head = journal_seq_t{};
     journal_device_id = pdevice_id;
 
-    for (auto& sm : sms) {
-      if (sm)
-       effective_devices.push_back(sm->get_device_id());
-    }
-
     space_tracker.reset(
       detailed ?
       (SpaceTrackerI*)new SpaceTrackerDetailed(
@@ -769,10 +762,6 @@ public:
     segments.update_segment_avail_bytes(offset);
   }
 
-  journal_seq_t get_journal_head() const {
-    return journal_head;
-  }
-
   void init_mark_segment_closed(
     segment_id_t segment,
     segment_seq_t seq,