MCPcopy Create free account
hub / github.com/ceph/ceph / have_module

Method have_module

src/mon/MgrMap.cc:237–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237bool MgrMap::StandbyInfo::have_module(const std::string &module_name) const
238{
239 auto it = std::find_if(available_modules.begin(),
240 available_modules.end(),
241 [module_name](const ModuleInfo &m) -> bool {
242 return m.name == module_name;
243 });
244
245 return it != available_modules.end();
246}
247
248MgrMap::MgrMap() noexcept = default;
249MgrMap::~MgrMap() noexcept = default;

Callers 2

any_supports_moduleMethod · 0.80
all_support_moduleMethod · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected