MCPcopy Create free account
hub / github.com/ComodoSecurity/openedr / loadConfigData

Method loadConfigData

edrav2/iprj/libcore/src/core.cpp:346–360  ·  view source on GitHub ↗

Loading data from config NOTE: This method should only be called under the mutex

Source from the content-addressed store, hash-verified

344 // NOTE: This method should only be called under the mutex
345 //
346 void loadConfigData(const std::string& sMessageId)
347 {
348 // @Bogdanov FIXME: Possible deadlock if sendMessage is called in createCommand
349 std::string sPath("app.config.messageHandlers.");
350 sPath += sMessageId;
351 Sequence seqHandlers(getCatalogData(sPath, Sequence()));
352
353 for (auto vSubscriber : seqHandlers)
354 m_mapSubscribers.insert({ {std::string(sMessageId), {
355 vSubscriber.get("subscriptionId", "default_config"),
356 createCommand(vSubscriber)
357 }}});
358
359 m_mapLoadCfg[sMessageId] = true;
360 }
361
362public:
363

Callers

nothing calls this directly

Calls 6

getCatalogDataFunction · 0.85
createCommandFunction · 0.85
SequenceClass · 0.50
stringClass · 0.50
insertMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected