From: myoungwon oh Date: Thu, 12 May 2022 02:03:32 +0000 (+0900) Subject: seastore/cbjournal: add comment to explain initialized X-Git-Tag: v18.0.0~857^2~19 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=1804695ff9eaffc0464931acb73de51ea3f31565;p=ceph-ci.git seastore/cbjournal: add comment to explain initialized Signed-off-by: Myoungwon Oh --- diff --git a/src/crimson/os/seastore/journal/circular_bounded_journal.h b/src/crimson/os/seastore/journal/circular_bounded_journal.h index 79075e38289..45c8107bb87 100644 --- a/src/crimson/os/seastore/journal/circular_bounded_journal.h +++ b/src/crimson/os/seastore/journal/circular_bounded_journal.h @@ -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