crimson/os/seastore/cached_extent: renew mutation_pending extents'

last_committed_crc when committing rewrite transactions

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
This commit is contained in:
Xuehan Xu 2026-05-26 12:36:03 +08:00
parent 8f95d0ea29
commit 981d678971

View File

@ -458,6 +458,10 @@ void ExtentCommitter::_share_prior_data_to_mutations() {
}
}
});
// "me" is the actual prev of mextent, so before mextent enters
// the "prepare" pipeline phase, its last_committed_crc should be
// that of "me"'s
mextent.set_last_committed_crc(me.get_last_committed_crc());
} else {
auto &mextent = static_cast<CachedExtent&>(mext);
TRACE("{} -> {}", extent, mextent);
@ -465,6 +469,7 @@ void ExtentCommitter::_share_prior_data_to_mutations() {
0, extent.get_length(), mextent.get_bptr().c_str());
mextent.on_data_commit();
mextent.reapply_delta();
mextent.set_last_committed_crc(extent.get_last_committed_crc());
}
}
}