Merge pull request #47599 from xxhdx1985126/wip-backref-minor-bug

crimson/os/seastore/cache: set extent's state to INVALID when invalidating it

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
This commit is contained in:
Yingxin 2022-08-25 10:36:09 +08:00 committed by GitHub
commit 98a1a5fa49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -804,6 +804,7 @@ void Cache::invalidate_extent(
{
if (!extent.may_conflict()) {
assert(extent.transactions.empty());
extent.state = CachedExtent::extent_state_t::INVALID;
return;
}