diff --git a/src/crimson/os/seastore/journal.cc b/src/crimson/os/seastore/journal.cc index a991d669a14..7fd24120c21 100644 --- a/src/crimson/os/seastore/journal.cc +++ b/src/crimson/os/seastore/journal.cc @@ -54,6 +54,15 @@ Journal::initialize_segment(Segment &segment) segment_provider->get_journal_tail_target()}; ::encode(header, bl); + bufferptr bp( + ceph::buffer::create_page_aligned( + segment_manager.get_block_size())); + bp.zero(); + auto iter = bl.cbegin(); + iter.copy(bl.length(), bp.c_str()); + bl.clear(); + bl.append(bp); + written_to = segment_manager.get_block_size(); return segment.write(0, bl).safe_then( [=] {