mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 21:55:03 +02:00
IDO: Do not log stats, if paused
This commit is contained in:
parent
72c67fc065
commit
8db82ff87d
@ -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();
|
||||||
|
@ -475,7 +475,7 @@ void IdoMysqlConnection::FinishConnect(double startTime)
|
|||||||
{
|
{
|
||||||
AssertOnWorkQueue();
|
AssertOnWorkQueue();
|
||||||
|
|
||||||
if (!GetConnected())
|
if (!GetConnected() || IsPaused())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
FinishAsyncQueries();
|
FinishAsyncQueries();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user