mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-25 18:48:50 +02:00
Benchmark FinishAsyncQueries
This commit is contained in:
parent
a652c4f52a
commit
06e0d75f99
@ -530,6 +530,11 @@ void IdoMysqlConnection::FinishAsyncQueries()
|
||||
std::vector<IdoAsyncQuery> queries;
|
||||
m_AsyncQueries.swap(queries);
|
||||
|
||||
Log(LogDebug, "IdoMysqlConnectionDebug")
|
||||
<< "About to fire " << queries.size() << " async queries";
|
||||
|
||||
auto started (Utility::GetTime());
|
||||
|
||||
std::vector<IdoAsyncQuery>::size_type offset = 0;
|
||||
|
||||
// This will be executed if there is a problem with executing the queries,
|
||||
@ -649,6 +654,9 @@ void IdoMysqlConnection::FinishAsyncQueries()
|
||||
Query("COMMIT");
|
||||
Query("BEGIN");
|
||||
}
|
||||
|
||||
Log(LogDebug, "IdoMysqlConnectionDebug")
|
||||
<< "FinishAsyncQueries took " << (Utility::GetTime() - started) << " seconds";
|
||||
}
|
||||
|
||||
IdoMysqlResult IdoMysqlConnection::Query(const String& query)
|
||||
|
Loading…
x
Reference in New Issue
Block a user