From 1804695ff9eaffc0464931acb73de51ea3f31565 Mon Sep 17 00:00:00 2001 From: myoungwon oh Date: Thu, 12 May 2022 11:03:32 +0900 Subject: [PATCH] seastore/cbjournal: add comment to explain initialized Signed-off-by: Myoungwon Oh --- src/crimson/os/seastore/journal/circular_bounded_journal.h | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.5