]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/os/seastore/circular_bounded_journal: drop unused applied_to
authorYingxin Cheng <yingxin.cheng@intel.com>
Mon, 4 Jul 2022 08:34:07 +0000 (16:34 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Wed, 6 Jul 2022 01:29:45 +0000 (09:29 +0800)
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/os/seastore/journal/circular_bounded_journal.cc
src/crimson/os/seastore/journal/circular_bounded_journal.h

index 9722200a335425e09e94d82a752fb918aaba19aa..d038b215d8da96c85a2c772974df72a9674b4d08 100644 (file)
@@ -20,7 +20,6 @@ std::ostream &operator<<(std::ostream &out,
             << ", block_size=" << header.block_size
             << ", size=" << header.size
             << ", journal_tail=" << header.journal_tail
-            << ", applied_to="<< header.applied_to
             << ", "<< device_id_printer_t{header.device_id}
              << ")";
 }
@@ -43,7 +42,6 @@ CircularBoundedJournal::mkfs(const mkfs_config_t& config)
     head.block_size = config.block_size;
     head.size = config.total_size - device->get_block_size();
     head.journal_tail = device->get_block_size();
-    head.applied_to = head.journal_tail;
     head.device_id = config.device_id;
     encode(head, bl);
     header = head;
index 4902729c48bd8b3d197eeaddd6bf460274e12228..230d3fdd12295d3a8eec9471e5651a1daa9a1f3a 100644 (file)
@@ -208,8 +208,6 @@ public:
 
     // start offset of CircularBoundedJournal in the device
     rbm_abs_addr journal_tail = 0;
-    // address to represent where last appllied record is written
-    rbm_abs_addr applied_to = 0;
 
     device_id_t device_id;
 
@@ -222,8 +220,6 @@ public:
 
       denc(v.journal_tail, p);
 
-      denc(v.applied_to, p);
-
       denc(v.device_id, p);
 
       DENC_FINISH(p);