]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/omap_manager: fix OMapLeafNode rewrite type error 64318/head
authorXuehan Xu <xuxuehan@qianxin.com>
Thu, 3 Jul 2025 04:38:09 +0000 (12:38 +0800)
committerXuehan Xu <xuxuehan@qianxin.com>
Thu, 3 Jul 2025 06:32:16 +0000 (14:32 +0800)
Fixes: https://tracker.ceph.com/issues/71939
Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
src/crimson/os/seastore/omap_manager/btree/omap_btree_node_impl.h

index c42030a6576315e8630ec554f8e36add6b255d4d..f1cbc2c3bdfc5074283e536ba754f93e1217371d 100644 (file)
@@ -306,7 +306,7 @@ struct OMapLeafNode
   using child_node_t = ChildNode<OMapInnerNode, OMapLeafNode, std::string>;
 
   void do_on_rewrite(Transaction &t, LogicalCachedExtent &extent) final {
-    auto &other = static_cast<OMapInnerNode&>(extent);
+    auto &other = static_cast<OMapLeafNode&>(extent);
     this->init_range(other.get_begin(), other.get_end());
   }