mirror of
https://github.com/ceph/ceph
synced 2026-08-02 07:03:18 +00:00
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:
parent
8f95d0ea29
commit
981d678971
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user