in CephContext::CephContext(), we assume that
ceph::common::local_perf_coll() is ready when a CephContext is to be
contructed. so we need to prepare start it before creating CephContext.
Signed-off-by: Kefu Chai <kchai@redhat.com>
conf->name = init_params.name;
conf->cluster = cluster;
return conf.parse_config_files(conf_file_list);
+ }).then([] {
+ return ceph::common::sharded_perf_coll().start();
}).then([] {
return seastar::do_with(ceph::net::SocketMessenger{entity_name_t::OSD(0), "monc", 0},
[](ceph::net::Messenger& msgr) {
});
});
}).finally([] {
- return ceph::common::sharded_conf().stop();
+ return ceph::common::sharded_perf_coll().stop().then([] {
+ return ceph::common::sharded_conf().stop();
+ });
});
}