]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/lba: non-existing LBACursors are strictly forbidden 69568/head
authorXuehan Xu <xuxuehan@qianxin.com>
Mon, 22 Jun 2026 12:47:39 +0000 (20:47 +0800)
committerXuehan Xu <xuxuehan@qianxin.com>
Wed, 24 Jun 2026 08:24:38 +0000 (16:24 +0800)
to refresh

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

index 5f64cba221781bbf3597995f8a189b8a5c5309c2..bc6c5f38e3db1691aecd8983b9b19488701f4e62 100644 (file)
@@ -135,6 +135,7 @@ base_iertr::future<> LBACursor::refresh()
 
   modifications = leaf->modifications;
   iter = leaf->lower_bound(get_laddr());
+  assert(iter == leaf->end() || iter.get_key() == get_laddr());
   assert(is_viewable());
 }