Skip to content

Commit eae1b31

Browse files
committed
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 <[email protected]>
1 parent fffbab1 commit eae1b31

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/crimson/os/seastore/btree/btree_range_pin.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ BtreeNodeMapping<key_t, val_t>::get_logical_extent(
1414
assert(parent);
1515
assert(parent->is_valid());
1616
assert(pos != std::numeric_limits<uint16_t>::max());
17+
ceph_assert(t.get_trans_id() == ctx.trans.get_trans_id());
1718
auto &p = (FixedKVNode<key_t>&)*parent;
1819
auto k = this->is_indirect()
1920
? this->get_intermediate_base()

0 commit comments

Comments
 (0)