From 005e0f532fbfdcfb813e3cf055ae37b009858484 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sun, 14 Aug 2016 20:17:14 +0200 Subject: [PATCH] Improve HA support for the IDO check task fixes #12430 --- lib/db_ido/idochecktask.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/db_ido/idochecktask.cpp b/lib/db_ido/idochecktask.cpp index 049928e4f..987dc3229 100644 --- a/lib/db_ido/idochecktask.cpp +++ b/lib/db_ido/idochecktask.cpp @@ -98,6 +98,13 @@ void IdoCheckTask::ScriptFunc(const Checkable::Ptr& checkable, const CheckResult double qps = conn->GetQueryCount(60) / 60.0; + if (conn->IsPaused()) { + cr->SetOutput("IDO connection is temporarily disabled on this cluster instance."); + cr->SetState(ServiceOK); + checkable->ProcessCheckResult(cr); + return; + } + if (!conn->GetConnected()) { if (conn->GetShouldConnect()) { cr->SetOutput("Could not connect to the database server.");