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.
<< 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();
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;