Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
void update_journal_tails(
journal_seq_t dirty_tail, journal_seq_t alloc_tail) final;
- void init_mkfs() {
- ceph_assert(disable_trim || journal_head != JOURNAL_SEQ_NULL);
- journal_alloc_tail = journal_head;
- journal_dirty_tail = journal_head;
- }
-
using release_ertr = SegmentManagerGroup::release_ertr;
release_ertr::future<> maybe_release_segment(Transaction &t);
};
dirty_tail = mkfs_seq;
alloc_tail = mkfs_seq;
+ segment_provider.update_journal_tails(
+ dirty_tail, alloc_tail);
} else {
ceph_assert(dirty_tail != JOURNAL_SEQ_NULL);
ceph_assert(alloc_tail != JOURNAL_SEQ_NULL);
).safe_then([this] {
return journal->open_for_mkfs();
}).safe_then([this](auto) {
- async_cleaner->init_mkfs();
return epm->open();
}).safe_then([this, FNAME]() {
return with_transaction_intr(