]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/btree: assert that the transaction getting logical
authorXuehan Xu <xuxuehan@qianxin.com>
Mon, 22 Apr 2024 10:10:33 +0000 (18:10 +0800)
committerXuehan Xu <xuxuehan@qianxin.com>
Mon, 22 Apr 2024 10:15:32 +0000 (18:15 +0800)
extents from pins are the one that created the pins

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

index 81d9c4116fd659c1cb9c79e29d53dc8ce18e5f53..1c34e99586064d5a10b341a87dc4ab6613cadee0 100644 (file)
@@ -14,6 +14,7 @@ BtreeNodeMapping<key_t, val_t>::get_logical_extent(
   assert(parent);
   assert(parent->is_valid());
   assert(pos != std::numeric_limits<uint16_t>::max());
+  ceph_assert(t.get_trans_id() == ctx.trans.get_trans_id());
   auto &p = (FixedKVNode<key_t>&)*parent;
   auto k = this->is_indirect()
     ? this->get_intermediate_base()