Skip to content

Commit eeb0f96

Browse files
committed
crimson/tools: Remove usage of at_exit()
at_exit() is deprecated in seastar. Make use of deferred_stop instead. Signed-off-by: Aishwarya Mathuria <[email protected]>
1 parent f09d3a7 commit eeb0f96

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/crimson/tools/perf_staged_fltree.cc

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#include <seastar/core/app-template.hh>
77
#include <seastar/core/thread.hh>
8+
#include <seastar/util/closeable.hh>
89

910
#include "crimson/common/config_proxy.h"
1011
#include "crimson/common/log.h"
@@ -116,15 +117,11 @@ seastar::future<> run(const bpo::variables_map& config) {
116117

117118
using crimson::common::sharded_conf;
118119
sharded_conf().start(EntityName{}, std::string_view{"ceph"}).get();
119-
seastar::engine().at_exit([] {
120-
return sharded_conf().stop();
121-
});
120+
auto sharded_conf_stop = seastar::deferred_stop(sharded_conf());
122121

123122
using crimson::common::sharded_perf_coll;
124123
sharded_perf_coll().start().get();
125-
seastar::engine().at_exit([] {
126-
return sharded_perf_coll().stop();
127-
});
124+
auto sharded_perf_stop = seastar::deferred_stop(sharded_perf_coll());
128125

129126
auto kvs = KVPool<test_item_t>::create_raw_range(
130127
ns_sizes, oid_sizes, onode_sizes,

0 commit comments

Comments
 (0)