From 1518a0679030389187669ea8c7b6f55bb467c81c Mon Sep 17 00:00:00 2001 From: myoungwon oh Date: Thu, 12 May 2022 11:59:13 +0900 Subject: [PATCH] seastore/cbjournal: fix comment to explain the condition in detail Signed-off-by: Myoungwon Oh --- src/crimson/os/seastore/journal/circular_bounded_journal.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/crimson/os/seastore/journal/circular_bounded_journal.cc b/src/crimson/os/seastore/journal/circular_bounded_journal.cc index 3f8f80d24e8fc..fb6c3c6f4cc9f 100644 --- a/src/crimson/os/seastore/journal/circular_bounded_journal.cc +++ b/src/crimson/os/seastore/journal/circular_bounded_journal.cc @@ -212,7 +212,8 @@ CircularBoundedJournal::submit_record_ret CircularBoundedJournal::submit_record( if (get_written_to() + ceph::encoded_sizeof_bounded() > get_journal_end()) { // not enough space between written_to and the end of journal, - // so that update used size to increase the amount of the remaing space + // so that set written_to to the beginning of cbjournal to append + // the record at the start address of cbjournal // | cbjournal | // v v // written_to <-> the end of journal -- 2.39.5