From: Xuehan Xu Date: Mon, 22 Apr 2024 10:10:33 +0000 (+0800) Subject: crimson/os/seastore/btree: assert that the transaction getting logical X-Git-Tag: v20.0.0~2078^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=eae1b3172ee81a01403dfe8722ef6fcfee621032;p=ceph.git crimson/os/seastore/btree: assert that the transaction getting logical extents from pins are the one that created the pins Signed-off-by: Xuehan Xu --- diff --git a/src/crimson/os/seastore/btree/btree_range_pin.cc b/src/crimson/os/seastore/btree/btree_range_pin.cc index 81d9c4116fd65..1c34e99586064 100644 --- a/src/crimson/os/seastore/btree/btree_range_pin.cc +++ b/src/crimson/os/seastore/btree/btree_range_pin.cc @@ -14,6 +14,7 @@ BtreeNodeMapping::get_logical_extent( assert(parent); assert(parent->is_valid()); assert(pos != std::numeric_limits::max()); + ceph_assert(t.get_trans_id() == ctx.trans.get_trans_id()); auto &p = (FixedKVNode&)*parent; auto k = this->is_indirect() ? this->get_intermediate_base()