]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/cached_extent: improve the representation of "has_been_invalidated"
authorXuehan Xu <xxhdx1985126@gmail.com>
Wed, 12 Oct 2022 06:37:39 +0000 (14:37 +0800)
committerXuehan Xu <xxhdx1985126@gmail.com>
Tue, 9 May 2023 05:55:53 +0000 (05:55 +0000)
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
src/crimson/os/seastore/cached_extent.h

index ea1a749b7f23a50a6bfe436e96610070050e3213..70ebc394bd5849965c57cdb2aa5f39e9cc95a296 100644 (file)
@@ -402,7 +402,7 @@ public:
 
   /// Returns true if extent or prior_instance has been invalidated
   bool has_been_invalidated() const {
-    return !is_valid() || (prior_instance && !prior_instance->is_valid());
+    return !is_valid() || (is_mutation_pending() && !prior_instance->is_valid());
   }
 
   /// Returns true if extent is a plcaeholder