]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
seastore/cbjournal: add comment to explain initialized
authormyoungwon oh <ohmyoungwon@gmail.com>
Thu, 12 May 2022 02:03:32 +0000 (11:03 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Thu, 19 May 2022 00:49:33 +0000 (09:49 +0900)
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
src/crimson/os/seastore/journal/circular_bounded_journal.h

index 79075e38289ed9187ce99e49557af9ee0b00d7ca..45c8107bb875510cd233c62aaba1c7b2a7b04a88 100644 (file)
@@ -303,6 +303,12 @@ private:
   NVMeBlockDevice* device;
   std::string path;
   WritePipeline *write_pipeline = nullptr;
+  /**
+   * initialized
+   *
+   * true after open_read_header, set to false in close(). Indicates that device is open
+   * and in-memory header is valid.
+   */
   bool init = false;
   segment_seq_t cur_segment_seq = 0; // segment seq to track the sequence to written records
   rbm_abs_addr start_dev_addr = 0; // cbjournal start address in device