]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/mgr/ActivePyModules.h
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / mgr / ActivePyModules.h
index 6015084e3cdcd057426853e63a0343aea185291a..4b180942dde0c9e4a81650b62f1d2d0223b5872d 100644 (file)
@@ -56,14 +56,14 @@ class ActivePyModules
   Objecter &objecter;
   Client   &client;
   Finisher &finisher;
-  TTLCache<string, PyObject*> ttl_cache;
+  TTLCache<std::string, PyObject*> ttl_cache;
 public:
   Finisher cmd_finisher;
 private:
   DaemonServer &server;
   PyModuleRegistry &py_module_registry;
 
-  map<std::string,ProgressEvent> progress_events;
+  std::map<std::string,ProgressEvent> progress_events;
 
   mutable ceph::mutex lock = ceph::make_mutex("ActivePyModules::lock");
 
@@ -189,6 +189,10 @@ public:
                   const std::string &notify_id);
   void notify_all(const LogEntry &log_entry);
 
+  auto& get_module_finisher(const std::string &name) {
+    return modules.at(name)->finisher;
+  }
+
   bool is_pending(std::string_view name) const {
     return pending_modules.count(name) > 0;
   }