mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
IDO: Do not log stats, if paused
This commit is contained in:
parent
4c3a037f1a
commit
c5b4b73de0
@ -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…
x
Reference in New Issue
Block a user