From: myoungwon Date: Mon, 16 May 2022 04:41:00 +0000 (+0900) Subject: seastore/cbjournal: add a log if crc is mismatched X-Git-Tag: v18.0.0~857^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F44233%2Fhead;p=ceph.git seastore/cbjournal: add a log if crc is mismatched Signed-off-by: Myoungwon Oh --- diff --git a/src/crimson/os/seastore/journal/circular_bounded_journal.cc b/src/crimson/os/seastore/journal/circular_bounded_journal.cc index cc44df9d46b8..60e356628535 100644 --- a/src/crimson/os/seastore/journal/circular_bounded_journal.cc +++ b/src/crimson/os/seastore/journal/circular_bounded_journal.cc @@ -339,7 +339,12 @@ CircularBoundedJournal::read_header(rbm_abs_addr start) ceph_le32 recorded_crc_le; decode(recorded_crc_le, bliter); uint32_t recorded_crc = recorded_crc_le; - ceph_assert(test_crc == recorded_crc); + if (test_crc != recorded_crc) { + ERROR("read_header: error, header crc mismatch."); + return read_header_ret( + read_header_ertr::ready_future_marker{}, + std::nullopt); + } return read_header_ret( read_header_ertr::ready_future_marker{}, std::make_pair(cbj_header, bl)