mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
crimson/os/seastore/cache: set extent's state to INVALID when invalidating it
Previously, when invalidating a non-conflict extent, I forgot to set its state Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
This commit is contained in:
parent
95f6cbfe17
commit
f5b5c3a990
@ -804,6 +804,7 @@ void Cache::invalidate_extent(
|
||||
{
|
||||
if (!extent.may_conflict()) {
|
||||
assert(extent.transactions.empty());
|
||||
extent.state = CachedExtent::extent_state_t::INVALID;
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user