Improve HA support for the IDO check task

fixes #12430
This commit is contained in:
Gunnar Beutner 2016-08-14 20:17:14 +02:00
parent c6e5f3dcb8
commit 005e0f532f
1 changed files with 7 additions and 0 deletions

View File

@ -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.");