]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/os/seastore/cache: unlink mutated extents from the stable
authorXuehan Xu <xuxuehan@qianxin.com>
Fri, 21 Nov 2025 07:13:11 +0000 (15:13 +0800)
committerXuehan Xu <xuxuehan@qianxin.com>
Tue, 10 Feb 2026 02:54:52 +0000 (10:54 +0800)
extents' transaction views when committing or invalidating the
transaction

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

index 864654e3488b26a0ee0afc225291f5d5738c9f98..f2d436a2f895b9bb4713ca6115bb80e69c97755c 100644 (file)
@@ -996,6 +996,7 @@ void Cache::mark_transaction_conflicted(
       }
       efforts.mutate.increment(i->get_length());
       delta_stat.increment(i->get_delta().length());
+      i->trans_view_hook.unlink();
     }
     efforts.mutate_delta_bytes += delta_stat.bytes;
 
@@ -1390,6 +1391,7 @@ record_t Cache::prepare_record(
     get_by_ext(efforts.delta_bytes_by_ext,
                i->get_type()) += delta_length;
     delta_stat.increment(delta_length);
+    i->trans_view_hook.unlink();
   }
 
   t.for_each_finalized_fresh_block([](auto &e) {