From: Xuehan Xu Date: Mon, 15 Aug 2022 14:00:46 +0000 (+0800) Subject: crimson/os/seastore/cache: set extent's state to INVALID when invalidating it X-Git-Tag: v18.0.0~173^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f5b5c3a990f4a43c12e7a1fa3ded5e4b28b82453;p=ceph-ci.git 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 --- diff --git a/src/crimson/os/seastore/cache.cc b/src/crimson/os/seastore/cache.cc index c119260e45e..4b5196b646e 100644 --- a/src/crimson/os/seastore/cache.cc +++ b/src/crimson/os/seastore/cache.cc @@ -804,6 +804,7 @@ void Cache::invalidate_extent( { if (!extent.may_conflict()) { assert(extent.transactions.empty()); + extent.state = CachedExtent::extent_state_t::INVALID; return; }