]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/mgr/MgrStandby.h
update sources to v12.1.0
[ceph.git] / ceph / src / mgr / MgrStandby.h
index d33c633dc424ebf4569f7286f3372de9579163a8..79cdaa0c00dbc10e7d47cb0b7c8b337eba4db3b4 100644 (file)
@@ -53,15 +53,19 @@ protected:
   Mutex lock;
   SafeTimer timer;
 
-  std::unique_ptr<Mgr> active_mgr;
+  std::shared_ptr<Mgr> active_mgr;
+
+  int orig_argc;
+  const char **orig_argv;
 
   std::string state_str();
 
   void handle_mgr_map(MMgrMap *m);
   void _update_log_config();
+  void send_beacon();
 
 public:
-  MgrStandby();
+  MgrStandby(int argc, const char **argv);
   ~MgrStandby() override;
 
   bool ms_dispatch(Message *m) override;
@@ -73,10 +77,10 @@ public:
 
   int init();
   void shutdown();
-  void usage() {}
+  void respawn();
   int main(vector<const char *> args);
   void handle_signal(int signum);
-  void send_beacon();
+  void tick();
 };
 
 #endif