]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/cache: set extent's state to INVALID when invalidating it 47599/head
authorXuehan Xu <xxhdx1985126@gmail.com>
Mon, 15 Aug 2022 14:00:46 +0000 (22:00 +0800)
committerXuehan Xu <xxhdx1985126@gmail.com>
Tue, 23 Aug 2022 02:23:07 +0000 (10:23 +0800)
Previously, when invalidating a non-conflict extent, I forgot to set its state

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
src/crimson/os/seastore/cache.cc

index c119260e45efabbf437584e82785c4ddf18e569e..4b5196b646eb3e9dcc5152968533f6c777ca98d7 100644 (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;
   }