Merge pull request #8380 from Icinga/bugfix/ido-do-not-log-if-paused-2.13

IDO: Do not log stats, if paused
This commit is contained in:
Alexander Aleksandrovič Klimov 2020-10-16 10:33:16 +02:00 committed by GitHub
commit 9969090976
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -245,7 +245,7 @@ void DbConnection::CleanUpHandler()
void DbConnection::LogStatsHandler() void DbConnection::LogStatsHandler()
{ {
if (!GetConnected()) if (!GetConnected() || IsPaused())
return; return;
auto pending = m_PendingQueries.load(); auto pending = m_PendingQueries.load();

View File

@ -475,7 +475,7 @@ void IdoMysqlConnection::FinishConnect(double startTime)
{ {
AssertOnWorkQueue(); AssertOnWorkQueue();
if (!GetConnected()) if (!GetConnected() || IsPaused())
return; return;
FinishAsyncQueries(); FinishAsyncQueries();