From: Samuel Just Date: Tue, 23 Sep 2025 20:51:18 +0000 (-0700) Subject: crimson/.../fixed_kv_btree: add get_btree helper X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5e3ff2e50c8b9c7f3612b8df3d927a77e3c9a78d;p=ceph-ci.git crimson/.../fixed_kv_btree: add get_btree helper Signed-off-by: Samuel Just --- diff --git a/src/crimson/os/seastore/btree/fixed_kv_btree.h b/src/crimson/os/seastore/btree/fixed_kv_btree.h index cb3624ba2da..7af3bb260a3 100644 --- a/src/crimson/os/seastore/btree/fixed_kv_btree.h +++ b/src/crimson/os/seastore/btree/fixed_kv_btree.h @@ -2378,6 +2378,15 @@ struct is_fixed_kv_tree< cursor_t, node_size>> : std::true_type {}; +template ::value, int> = 0> +Cache::get_root_iertr::future +get_btree(Cache &cache, op_context_t c) +{ + auto croot = co_await cache.get_root(c.trans); + co_return tree_type_t{croot}; +} + template < typename tree_type_t, typename F,