MCPcopy Create free account
hub / github.com/Icinga/icinga2 / AsyncQuery

Method AsyncQuery

lib/db_ido_mysql/idomysqlconnection.cpp:521–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

519}
520
521void IdoMysqlConnection::AsyncQuery(const String& query, const std::function<void (const IdoMysqlResult&)>& callback)
522{
523 AssertOnWorkQueue();
524
525 IdoAsyncQuery aq;
526 aq.Query = query;
527 /* XXX: Important: The callback must not immediately execute a query, but enqueue it!
528 * See https://github.com/Icinga/icinga2/issues/4603 for details.
529 */
530 aq.Callback = callback;
531 m_AsyncQueries.emplace_back(std::move(aq));
532}
533
534void IdoMysqlConnection::FinishAsyncQueries()
535{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected