From 30b13ba2d6d74605c3a9b7d5f6b5083f626b6104 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 17 Dec 2015 12:05:35 +0100 Subject: [PATCH] Don't log IDO statistics when we're not connected refs #10860 --- lib/db_ido/dbconnection.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/db_ido/dbconnection.cpp b/lib/db_ido/dbconnection.cpp index 919ef3959..64875d822 100644 --- a/lib/db_ido/dbconnection.cpp +++ b/lib/db_ido/dbconnection.cpp @@ -67,6 +67,9 @@ void DbConnection::Start(bool runtimeCreated) void DbConnection::StatsLoggerTimerHandler(void) { + if (!GetConnected()) + return; + int pending = GetPendingQueryCount(); double now = Utility::GetTime();