From 3ad843d9774bbe5c27ba590667bbd3464b6f059c Mon Sep 17 00:00:00 2001 From: Yingxin Cheng Date: Thu, 20 May 2021 09:46:17 +0800 Subject: [PATCH] crimson/onode-staged-tree: fix initialization in perf tool Signed-off-by: Yingxin Cheng --- src/tools/crimson/perf_staged_fltree.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/tools/crimson/perf_staged_fltree.cc b/src/tools/crimson/perf_staged_fltree.cc index 8a5fdebcad498..24f9a6efe37d7 100644 --- a/src/tools/crimson/perf_staged_fltree.cc +++ b/src/tools/crimson/perf_staged_fltree.cc @@ -6,7 +6,9 @@ #include #include +#include "crimson/common/config_proxy.h" #include "crimson/common/log.h" +#include "crimson/common/perf_counters_collection.h" #include "crimson/os/seastore/onode_manager/staged-fltree/tree_utils.h" #include "crimson/os/seastore/onode_manager/staged-fltree/node_extent_manager.h" @@ -98,6 +100,18 @@ seastar::future<> run(const bpo::variables_map& config) { ceph_assert(erase_ratio >= 0); ceph_assert(erase_ratio <= 1); + using crimson::common::sharded_conf; + sharded_conf().start(EntityName{}, string_view{"ceph"}).get(); + seastar::engine().at_exit([] { + return sharded_conf().stop(); + }); + + using crimson::common::sharded_perf_coll; + sharded_perf_coll().start().get(); + seastar::engine().at_exit([] { + return sharded_perf_coll().stop(); + }); + auto kvs = KVPool::create_raw_range( str_sizes, onode_sizes, {range2[0], range2[1]}, -- 2.39.5