mirror of https://github.com/Icinga/icinga2.git
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:
commit
9969090976
|
@ -245,7 +245,7 @@ void DbConnection::CleanUpHandler()
|
|||
|
||||
void DbConnection::LogStatsHandler()
|
||||
{
|
||||
if (!GetConnected())
|
||||
if (!GetConnected() || IsPaused())
|
||||
return;
|
||||
|
||||
auto pending = m_PendingQueries.load();
|
||||
|
|
|
@ -475,7 +475,7 @@ void IdoMysqlConnection::FinishConnect(double startTime)
|
|||
{
|
||||
AssertOnWorkQueue();
|
||||
|
||||
if (!GetConnected())
|
||||
if (!GetConnected() || IsPaused())
|
||||
return;
|
||||
|
||||
FinishAsyncQueries();
|
||||
|
|
Loading…
Reference in New Issue