This was just recently broken with the merge of the pgmap changes.
Signed-off-by: Sage Weil <sage@inktank.com>
set<string> targets;
targets.insert(paxos->get_name());
for (int i = 0; i < PAXOS_NUM; ++i)
- targets.insert(paxos_service[i]->get_service_name());
+ paxos_service[i]->get_store_prefixes(targets);
return targets;
}
{ }
~PGMonitor() { }
+ virtual void get_store_prefixes(set<string>& s) {
+ s.insert(get_service_name());
+ s.insert("pgmap_meta");
+ s.insert("pgmap_pg");
+ s.insert("pgmap_osd");
+ }
+
virtual void on_restart();
/* Courtesy function provided by PaxosService, called when an election
* @returns The service's name.
*/
string get_service_name() { return service_name; }
+
+ /**
+ * Get the store prefixes we utilize
+ */
+ virtual void get_store_prefixes(set<string>& s) {
+ s.insert(service_name);
+ }
// i implement and you ignore
/**