]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/mgr: sync mgr_command_descs table and mgr_metadata table 18620/head
authorhuanwen ren <ren.huanwen@zte.com.cn>
Mon, 25 Sep 2017 07:01:02 +0000 (15:01 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 30 Oct 2017 09:17:14 +0000 (17:17 +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>
(cherry picked from commit 13f6aa3aaa6de0aeccec67d7c6f3effe43dcae49)

Conflict: in master PaxosService::get_store_prefixes(..) is marked const
while in luminous, the cleanup commit which added the `const` is not
backported yet, so drop the `const` in the backported commit.

src/mon/MgrMonitor.cc
src/mon/MgrMonitor.h

index f11859971c620d7077187a2fd2fe39aba879a8e4..7d01b6c7fac4ac61fdb9f537cfb68639b9e66125 100644 (file)
@@ -53,6 +53,13 @@ void MgrMonitor::create_initial()
           << dendl;
 }
 
+void MgrMonitor::get_store_prefixes(std::set<string>& s)
+{
+  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 563ae7c5de8de937626fdf2be61823809a7e6fb9..f7fb506cd1bc63b1221de95e38839c6f13324343 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) override;
   void update_from_paxos(bool *need_bootstrap) override;
   void create_pending() override;
   void encode_pending(MonitorDBStore::TransactionRef t) override;