]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/cached_extent: add comments to elaborate why
authorXuehan Xu <xuxuehan@qianxin.com>
Mon, 18 Mar 2024 09:24:02 +0000 (17:24 +0800)
committerXuehan Xu <xuxuehan@qianxin.com>
Mon, 18 Mar 2024 09:24:02 +0000 (17:24 +0800)
MUTATION_PENDING and under-io extents are "stable"

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
src/crimson/os/seastore/cached_extent.h

index 18ddbd95796c332d285bdd0ebcdbc6b4e94e01a6..730a0ace9a0b750bfe8743d52e19b73656e40579 100644 (file)
@@ -426,6 +426,9 @@ public:
   /// Returns true if extent is stable and shared among transactions
   bool is_stable() const {
     return is_stable_written() ||
+          // MUTATION_PENDING and under-io extents are to-be-stable extents,
+          // for the sake of caveats that checks the correctness of extents
+          // states, we consider them stable.
            (is_mutation_pending() &&
             is_pending_io());
   }