From effb834d3ff0da6c95b1a0e156cf1cf93479dce0 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Fri, 9 Jan 2015 11:23:29 +0100 Subject: [PATCH] Increase DB IDO query queue limit fixes #8152 --- lib/db_ido_mysql/idomysqlconnection.cpp | 4 ++-- lib/db_ido_pgsql/idopgsqlconnection.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/db_ido_mysql/idomysqlconnection.cpp b/lib/db_ido_mysql/idomysqlconnection.cpp index 9d06fbdee..f5c0f8f72 100644 --- a/lib/db_ido_mysql/idomysqlconnection.cpp +++ b/lib/db_ido_mysql/idomysqlconnection.cpp @@ -39,8 +39,8 @@ using namespace icinga; REGISTER_TYPE(IdoMysqlConnection); REGISTER_STATSFUNCTION(IdoMysqlConnectionStats, &IdoMysqlConnection::StatsFunc); -IdoMysqlConnection::IdoMysqlConnection(void) - : m_Connected(false) +IdoMysqlConnection::IdoMysqlConnection(void) + : m_QueryQueue(500000), m_Connected(false) { } Value IdoMysqlConnection::StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata) diff --git a/lib/db_ido_pgsql/idopgsqlconnection.cpp b/lib/db_ido_pgsql/idopgsqlconnection.cpp index 1c8653ac5..a64e46de3 100644 --- a/lib/db_ido_pgsql/idopgsqlconnection.cpp +++ b/lib/db_ido_pgsql/idopgsqlconnection.cpp @@ -41,8 +41,8 @@ REGISTER_TYPE(IdoPgsqlConnection); REGISTER_STATSFUNCTION(IdoPgsqlConnectionStats, &IdoPgsqlConnection::StatsFunc); -IdoPgsqlConnection::IdoPgsqlConnection(void) - : m_Connection(NULL) +IdoPgsqlConnection::IdoPgsqlConnection(void) + : m_QueryQueue(500000), m_Connection(NULL) { } Value IdoPgsqlConnection::StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata)