Skip to content

Commit

Permalink
Merge pull request #8378 from Icinga/bugfix/ido-do-not-log-if-paused
Browse files Browse the repository at this point in the history
IDO: Do not log, if paused
  • Loading branch information
Al2Klimov authored Oct 15, 2020
2 parents 4c3a037 + c5b4b73 commit eb4e739
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/db_ido/dbconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ void DbConnection::CleanUpHandler()

void DbConnection::LogStatsHandler()
{
if (!GetConnected())
if (!GetConnected() || IsPaused())
return;

auto pending = m_PendingQueries.load();
Expand Down
2 changes: 1 addition & 1 deletion lib/db_ido_mysql/idomysqlconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ void IdoMysqlConnection::FinishConnect(double startTime)
{
AssertOnWorkQueue();

if (!GetConnected())
if (!GetConnected() || IsPaused())
return;

FinishAsyncQueries();
Expand Down

0 comments on commit eb4e739

Please sign in to comment.