auto get_clients() const
{
- std::scoped_lock l(lock);
- std::vector<entity_addrvec_t> v;
- for (const auto& p : clients) {
- v.push_back(p.second);
- }
- return v;
+ std::lock_guard l(lock);
+ return clients;
}
+ bool is_module_active(const std::string &name) {
+ ceph_assert(active_modules);
+ return active_modules->module_exists(name);
+ }
+
+ auto& get_active_module_finisher(const std::string &name) {
+ ceph_assert(active_modules);
+ return active_modules->get_module_finisher(name);
+ }
+
// <<< (end of ActivePyModules cheeky call-throughs)
};