]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/mgr: sync mgr_command_descs table and mgr_metadata table 17929/head
authorhuanwen ren <ren.huanwen@zte.com.cn>
Mon, 25 Sep 2017 07:01:02 +0000 (15:01 +0800)
committerhuanwen ren <ren.huanwen@zte.com.cn>
Mon, 25 Sep 2017 11:42:08 +0000 (19:42 +0800)
sync mgr_command_descs table and mgr_metadata table to new mons

Fixes: http://tracker.ceph.com/issues/21527
Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
src/mon/MgrMonitor.cc
src/mon/MgrMonitor.h

index 79b2a00233de1aec9ea7f69fb80ded069e89d10e..4aee578e3d165b9bff42c36df87ce44dd6cf07af 100644 (file)
@@ -54,6 +54,13 @@ void MgrMonitor::create_initial()
           << dendl;
 }
 
+void MgrMonitor::get_store_prefixes(std::set<string>& s) const
+{
+  s.insert(service_name);
+  s.insert(command_descs_prefix);
+  s.insert(MGR_METADATA_PREFIX);
+}
+
 void MgrMonitor::update_from_paxos(bool *need_bootstrap)
 {
   version_t version = get_last_committed();
index de07d7f430248d60096421cbd6e702da7fefd90e..2f24c4ad1ce299b6a4923f358105a1b138959c16 100644 (file)
@@ -79,6 +79,7 @@ public:
   bool in_use() const { return map.epoch > 0; }
 
   void create_initial() override;
+  void get_store_prefixes(std::set<string>& s) const override;
   void update_from_paxos(bool *need_bootstrap) override;
   void create_pending() override;
   void encode_pending(MonitorDBStore::TransactionRef t) override;