Signed-off-by: Sage Weil <sage@redhat.com>
}
}
+void DaemonStateIndex::rm(const DaemonKey &key)
+{
+ RWLock::WLocker l(lock);
+ if (all.count(key)) {
+ _erase(key);
+ }
+}
+
void DaemonStateIndex::cull(const std::string& svc_name,
const std::set<std::string>& names_exist)
{
void insert(DaemonStatePtr dm);
bool exists(const DaemonKey &key) const;
DaemonStatePtr get(const DaemonKey &key);
+ void rm(const DaemonKey &key);
// Note that these return by value rather than reference to avoid
// callers needing to stay in lock while using result. Callers must