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()
{
if (!GetConnected())
if (!GetConnected() || IsPaused())
return;
auto pending = m_PendingQueries.load();

View File

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