diff --git a/src/mon/MgrMonitor.cc b/src/mon/MgrMonitor.cc index 79b2a00233d..4aee578e3d1 100644 --- a/src/mon/MgrMonitor.cc +++ b/src/mon/MgrMonitor.cc @@ -54,6 +54,13 @@ void MgrMonitor::create_initial() << dendl; } +void MgrMonitor::get_store_prefixes(std::set& 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(); diff --git a/src/mon/MgrMonitor.h b/src/mon/MgrMonitor.h index de07d7f4302..2f24c4ad1ce 100644 --- a/src/mon/MgrMonitor.h +++ b/src/mon/MgrMonitor.h @@ -79,6 +79,7 @@ public: bool in_use() const { return map.epoch > 0; } void create_initial() override; + void get_store_prefixes(std::set& s) const override; void update_from_paxos(bool *need_bootstrap) override; void create_pending() override; void encode_pending(MonitorDBStore::TransactionRef t) override;