mirror of
https://github.com/ceph/ceph
synced 2024-12-15 07:56:12 +00:00
mon/mgr: sync mgr_command_descs table and mgr_metadata table
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>
This commit is contained in:
parent
6c20433bfb
commit
13f6aa3aaa
@ -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();
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user