From: Yuri Weinstein Date: Wed, 24 May 2023 14:29:08 +0000 (-0400) Subject: Merge pull request #51044 from kotreshhr/wip-59416-quincy X-Git-Tag: v17.2.7~383 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=5918946fe99c3e70ecc6fd4356b9a88e00364909;p=ceph.git Merge pull request #51044 from kotreshhr/wip-59416-quincy quincy: mgr: Add one finisher thread per module Reviewed-by: Kotresh HR --- 5918946fe99c3e70ecc6fd4356b9a88e00364909 diff --cc src/mgr/PyModuleRegistry.h index 14b8339665a42,c0e951ed7b67a..e16b2830d910e --- a/src/mgr/PyModuleRegistry.h +++ b/src/mgr/PyModuleRegistry.h @@@ -221,9 -219,23 +221,19 @@@ public auto get_clients() const { - std::scoped_lock l(lock); - std::vector 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) };